refactor: separate auto-save configuration from utilities
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user