diff options
Diffstat (limited to '.config/nvim/lua/plugins')
| -rw-r--r-- | .config/nvim/lua/plugins/auto-save.lua | 3 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/auto-session.lua | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/.config/nvim/lua/plugins/auto-save.lua b/.config/nvim/lua/plugins/auto-save.lua index 7fca622..664166a 100644 --- a/.config/nvim/lua/plugins/auto-save.lua +++ b/.config/nvim/lua/plugins/auto-save.lua @@ -34,7 +34,8 @@ return { local filetype = vim.bo[buf].filetype -- Don't autosave special buffers or Oil buffers - return buftype == '' and filetype ~= 'oil' and filetype ~= 'hyprlang' + local result = buftype == '' and filetype ~= 'oil' and filetype ~= 'hyprlang' and filetype ~= 'build_terminal' + return result end, } end, diff --git a/.config/nvim/lua/plugins/auto-session.lua b/.config/nvim/lua/plugins/auto-session.lua index 925893e..60ecdfb 100644 --- a/.config/nvim/lua/plugins/auto-session.lua +++ b/.config/nvim/lua/plugins/auto-session.lua @@ -4,5 +4,7 @@ return { opts = { suppressed_dirs = { '~/', '/' }, session_lens = { load_on_setup = false }, + bypass_save_filetypes = { 'snacks_dashboard' }, + close_filetypes_on_save = { 'checkhealth', 'build_terminal' }, }, } |
