Flatten modules
This commit is contained in:
parent
ab5ae74dda
commit
d1a58fec56
86 changed files with 64 additions and 50 deletions
22
modules/home-manager/neovim/config/plugins/auto-save.nix
Normal file
22
modules/home-manager/neovim/config/plugins/auto-save.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
plugins.auto-save.enable = true;
|
||||
|
||||
plugins.auto-save.settings.condition = ''
|
||||
function(buf)
|
||||
local excluded_filetypes = {
|
||||
"harpoon",
|
||||
"oil",
|
||||
}
|
||||
|
||||
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