Don't automatically save/close Harpoon windows
All checks were successful
/ check (push) Successful in 1m26s
All checks were successful
/ check (push) Successful in 1m26s
This commit is contained in:
parent
003ed12e84
commit
aee90917d9
1 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue