refactor: separate auto-save configuration from utilities

This commit is contained in:
2024-11-08 12:35:40 -05:00
parent a677f946ed
commit 40f421cbcd
2 changed files with 13 additions and 7 deletions
+13
View File
@@ -0,0 +1,13 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ Auto-Save │
-- ╰─────────────────────────────────────────────────────────╯
return {
{ -- Auto-save
"okuuva/auto-save.nvim",
cmd = require("data.cmd").autosave,
event = { "InsertLeave", "TextChanged" },
opts = require("data.types").autosave,
cond = require("data.cond").autosave,
},
}
-7
View File
@@ -41,13 +41,6 @@ return {
dependencies = data.deps.gx,
config = true,
},
{ -- Auto-save
"okuuva/auto-save.nvim",
cmd = data.cmd.autosave,
event = { "InsertLeave", "TextChanged" },
opts = data.types.autosave,
cond = data.cond.autosave,
},
{ -- Ripgrep substitute
"chrisgrieser/nvim-rip-substitute",
event = "InsertEnter",