fix: renamed session to persistence in autocmds
This commit is contained in:
parent
8b32094309
commit
38203a17a9
@ -20,18 +20,18 @@ end
|
|||||||
|
|
||||||
function M.start()
|
function M.start()
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
augroup Session
|
augroup Persistence
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd VimLeavePre * lua require("session").save()
|
autocmd VimLeavePre * lua require("persistence").save()
|
||||||
"autocmd BufEnter * lua require("session").save()
|
"autocmd BufEnter * lua require("persistence").save()
|
||||||
augroup end
|
augroup end
|
||||||
]])
|
]])
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.stop()
|
function M.stop()
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
autocmd! Session
|
autocmd! Persistence
|
||||||
augroup! Session
|
augroup! Persistence
|
||||||
]])
|
]])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user