diff options
Diffstat (limited to '.config/nvim/lua/plugins/auto-save.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/auto-save.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/auto-save.lua b/.config/nvim/lua/plugins/auto-save.lua index 5da836b..99ff70e 100644 --- a/.config/nvim/lua/plugins/auto-save.lua +++ b/.config/nvim/lua/plugins/auto-save.lua @@ -25,6 +25,11 @@ return { return { -- execution_message = { enabled = false }, removed condition = function(buf) + -- TODO: oil issues might be bcz of autosaving? + -- Maybe I should exclude Oil ft? + -- Might be unrelated tho + -- Oil error is "cannot save, action already in progress" + -- Save only if the buffer is not a "special buffer" return vim.fn.getbufvar(buf, '&buftype') == '' end, |
