diff --git a/.config/aliasrc b/.config/aliasrc index 04e34cc..9d2e0b6 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -127,6 +127,7 @@ alias svim="sudo nvim" alias svi="sudo nvim" command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" command -v nvim >/dev/null && alias vi="nvim" vidiff="nvim -d" +alias renamer="nvim +Renamer" # weather alias weather="curl wttr.in" diff --git a/.config/nvim/lua/autocmd.lua b/.config/nvim/lua/autocmd.lua index f192898..165bef7 100644 --- a/.config/nvim/lua/autocmd.lua +++ b/.config/nvim/lua/autocmd.lua @@ -18,9 +18,7 @@ vim.api.nvim_create_autocmd({ "VimEnter" }, { return end local session_info = Session.info(vim.loop.cwd()) - if session_info == nil then - Session.restore_latest() - else + if session_info ~= nil then Session.restore(vim.loop.cwd()) end end,