mirror of
https://github.com/zoriya/flake.git
synced 2026-05-30 01:38:11 +00:00
Fix autosave when exiting/suspending vim
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user