mirror of
https://github.com/zoriya/flake.git
synced 2026-06-06 03:55:37 +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")
|
local ft = vim.fn.getbufvar(buf, "&filetype")
|
||||||
return ft ~= "oil" and ft ~= "harpoon" and ft ~= "qf"
|
return ft ~= "oil" and ft ~= "harpoon" and ft ~= "qf"
|
||||||
end,
|
end,
|
||||||
|
trigger_events = {
|
||||||
|
-- TODO: upstream this
|
||||||
|
immediate_save = { "BufLeave", "FocusLost", "QuitPre", "VimSuspend" },
|
||||||
|
}
|
||||||
},
|
},
|
||||||
beforeAll = function()
|
beforeAll = function()
|
||||||
vim.g.auto_save_state = true
|
vim.g.auto_save_state = true
|
||||||
|
|||||||
Reference in New Issue
Block a user