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,
|
group = aug,
|
||||||
pattern = "*",
|
pattern = "*",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- 在 Vim 退出前保存会话
|
||||||
|
autocmd("VimLeavePre", {
|
||||||
|
command = ":SessionSave",
|
||||||
|
})
|
||||||
|
@ -2,6 +2,7 @@ return {
|
|||||||
"rmagatti/auto-session",
|
"rmagatti/auto-session",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
cmd = {
|
cmd = {
|
||||||
|
"SessionSave",
|
||||||
"SessionRestore",
|
"SessionRestore",
|
||||||
},
|
},
|
||||||
-- event = "VeryLazy",
|
-- event = "VeryLazy",
|
||||||
|
Reference in New Issue
Block a user