fix: renamed session to persistence in autocmds

This commit is contained in:
Folke Lemaitre 2021-07-03 23:53:52 +02:00
parent 8b32094309
commit 38203a17a9

View File

@ -20,18 +20,18 @@ end
function M.start()
vim.cmd([[
augroup Session
augroup Persistence
autocmd!
autocmd VimLeavePre * lua require("session").save()
"autocmd BufEnter * lua require("session").save()
autocmd VimLeavePre * lua require("persistence").save()
"autocmd BufEnter * lua require("persistence").save()
augroup end
]])
end
function M.stop()
vim.cmd([[
autocmd! Session
augroup! Session
autocmd! Persistence
augroup! Persistence
]])
end