mirror of
https://github.com/DefectingCat/nvim
synced 2025-07-15 16:51:33 +00:00
auto save session
This commit is contained in:
@ -225,3 +225,8 @@ autocmd({ "BufReadPre" }, {
|
||||
group = aug,
|
||||
pattern = "*",
|
||||
})
|
||||
|
||||
-- 在 Vim 退出前保存会话
|
||||
autocmd("VimLeavePre", {
|
||||
command = ":SessionSave",
|
||||
})
|
||||
|
@ -2,6 +2,7 @@ return {
|
||||
"rmagatti/auto-session",
|
||||
lazy = true,
|
||||
cmd = {
|
||||
"SessionSave",
|
||||
"SessionRestore",
|
||||
},
|
||||
-- event = "VeryLazy",
|
||||
|
Reference in New Issue
Block a user