nix-config/modules/home-manager/coding/neovim/config/plugins/auto-save.nix
Oliver Davies aee90917d9
All checks were successful
/ check (push) Successful in 1m26s
Don't automatically save/close Harpoon windows
2025-06-13 01:36:54 +01:00

21 lines
428 B
Nix

{
plugins.auto-save.enable = true;
plugins.auto-save.settings.condition = ''
function(buf)
local excluded_filetypes = {
"harpoon"
}
local excluded_filenames = {}
if vim.tbl_contains(excluded_filetypes, vim.fn.getbufvar(buf, "&filetype"))
or vim.tbl_contains(excluded_filenames, vim.fn.expand("%:t"))
then
return false
end
return true
end
'';
}