2025-06-12 13:59:21 +01:00
|
|
|
{
|
|
|
|
plugins.auto-save.enable = true;
|
2025-06-13 01:36:54 +01:00
|
|
|
|
|
|
|
plugins.auto-save.settings.condition = ''
|
|
|
|
function(buf)
|
|
|
|
local excluded_filetypes = {
|
2025-06-16 09:34:30 +01:00
|
|
|
"harpoon",
|
|
|
|
"oil",
|
2025-06-13 01:36:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
2025-06-12 13:59:21 +01:00
|
|
|
}
|