summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/auto-save.lua
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-04-27 14:12:18 +0300
committerKyren223 <Kyren223@proton.me>2025-04-27 14:12:18 +0300
commit21107f040b1579c1139ef0ca2ce993603d24826f (patch)
treeec72798215c80179689b9a92d1f147308771244d /.config/nvim/lua/plugins/auto-save.lua
parent49be66e67afbbe27b4d93ec1ff39bc6c1d97e3ef (diff)
Massive nvim refactor, migrated from nvim-lspconfig to NVIM 0.11 lsp/*
also migrated most LSP clients to nix rather than mason
Diffstat (limited to '.config/nvim/lua/plugins/auto-save.lua')
-rw-r--r--.config/nvim/lua/plugins/auto-save.lua5
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,