⚙️ 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 { return {
"chrisgrieser/nvim-early-retirement", "chrisgrieser/nvim-early-retirement",
event = "BufRead", event = "VeryLazy",
opts = { opts = {
retirementAgeMins = 30, retirementAgeMins = 30,
ignoreUnsavedChangesBufs = false,
}, },
} }

View file

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

View file

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