Don't automatically save/close Harpoon windows
All checks were successful
/ check (push) Successful in 1m26s

This commit is contained in:
Oliver Davies 2025-06-13 01:36:54 +01:00
parent 003ed12e84
commit aee90917d9

View file

@ -1,3 +1,21 @@
{
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
'';
}