summaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/autosave.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nvim/lua/plugins/autosave.lua10
1 files changed, 1 insertions, 9 deletions
diff --git a/nvim/lua/plugins/autosave.lua b/nvim/lua/plugins/autosave.lua
index 9cbcd83..069afbf 100644
--- a/nvim/lua/plugins/autosave.lua
+++ b/nvim/lua/plugins/autosave.lua
@@ -56,17 +56,9 @@ return {
return false
end
- -- Skip autosave if you're in an active snippet
- if require("luasnip").in_snippet() then
- return false
- end
-
return true
end,
- write_all_buffers = false, -- write all buffers when the current one meets `condition`
- -- Do not execute autocmds when saving
- -- If you set noautocmd = true, autosave won't trigger an auto format
- -- https://github.com/okuuva/auto-save.nvim/issues/55
+ write_all_buffers = true, -- write all buffers when the current one meets `condition`
noautocmd = false,
lockmarks = false, -- lock marks when saving, see `:h lockmarks` for more details
-- delay after which a pending save is executed (default 1000)