2025-07-26 02:35:57 +01:00
|
|
|
{
|
|
|
|
flake.modules.nixvim.custom.plugins.auto-save = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
settings.condition = ''
|
|
|
|
function(buf)
|
2025-09-25 08:00:00 +01:00
|
|
|
local excluded_filetypes = {}
|
2025-07-26 02:35:57 +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
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|