⚙️ config(nvim): changes to retirement options as well as autosave events
This commit is contained in:
parent
bb04deaec8
commit
1200b7f951
3 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
return {
|
||||
"chrisgrieser/nvim-early-retirement",
|
||||
event = "BufRead",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
retirementAgeMins = 30,
|
||||
ignoreUnsavedChangesBufs = false,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
return {
|
||||
-- "Pocco81/auto-save.nvim",
|
||||
"zoriya/auto-save.nvim", -- HACK: use fork until PR is accepted
|
||||
event = { "InsertEnter" },
|
||||
event = { "InsertLeave", "TextChanged" },
|
||||
opts = {
|
||||
debounce_delay = 1000,
|
||||
callbacks = {
|
||||
before_saving = function()
|
||||
-- save global autoformat status
|
||||
|
|
|
@ -70,6 +70,7 @@ return {
|
|||
Lua = {
|
||||
hint = {
|
||||
enable = true,
|
||||
setType = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue