Fix autosave when exiting/suspending vim

This commit is contained in:
2025-01-07 11:55:14 +01:00
parent 48461f4901
commit bdb42577ba
+4
View File
@@ -20,6 +20,10 @@ return {
local ft = vim.fn.getbufvar(buf, "&filetype")
return ft ~= "oil" and ft ~= "harpoon" and ft ~= "qf"
end,
trigger_events = {
-- TODO: upstream this
immediate_save = { "BufLeave", "FocusLost", "QuitPre", "VimSuspend" },
}
},
beforeAll = function()
vim.g.auto_save_state = true