From 38203a17a97d49bfcc938f171ecfa44f52dda08e Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 3 Jul 2021 23:53:52 +0200 Subject: [PATCH] fix: renamed session to persistence in autocmds --- lua/persistence/init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/persistence/init.lua b/lua/persistence/init.lua index 777fe20..7db4260 100644 --- a/lua/persistence/init.lua +++ b/lua/persistence/init.lua @@ -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