⚙️ config(nvim): changes to retirement options as well as autosave events

This commit is contained in:
Sergio Laín 2023-12-03 18:33:55 +01:00
parent bb04deaec8
commit 1200b7f951
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 5 additions and 2 deletions

View file

@ -1,7 +1,8 @@
return {
"chrisgrieser/nvim-early-retirement",
event = "BufRead",
event = "VeryLazy",
opts = {
retirementAgeMins = 30,
ignoreUnsavedChangesBufs = false,
},
}

View file

@ -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

View file

@ -70,6 +70,7 @@ return {
Lua = {
hint = {
enable = true,
setType = true,
},
},
},