⚙️ 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 {
|
return {
|
||||||
"chrisgrieser/nvim-early-retirement",
|
"chrisgrieser/nvim-early-retirement",
|
||||||
event = "BufRead",
|
event = "VeryLazy",
|
||||||
opts = {
|
opts = {
|
||||||
retirementAgeMins = 30,
|
retirementAgeMins = 30,
|
||||||
|
ignoreUnsavedChangesBufs = false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
return {
|
return {
|
||||||
-- "Pocco81/auto-save.nvim",
|
-- "Pocco81/auto-save.nvim",
|
||||||
"zoriya/auto-save.nvim", -- HACK: use fork until PR is accepted
|
"zoriya/auto-save.nvim", -- HACK: use fork until PR is accepted
|
||||||
event = { "InsertEnter" },
|
event = { "InsertLeave", "TextChanged" },
|
||||||
opts = {
|
opts = {
|
||||||
|
debounce_delay = 1000,
|
||||||
callbacks = {
|
callbacks = {
|
||||||
before_saving = function()
|
before_saving = function()
|
||||||
-- save global autoformat status
|
-- save global autoformat status
|
||||||
|
|
|
@ -70,6 +70,7 @@ return {
|
||||||
Lua = {
|
Lua = {
|
||||||
hint = {
|
hint = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
setType = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue