nvim: changed session restoring to be limited to projects, added renamer alias

master
tiyn 9 months ago
parent 7e576a888e
commit 3835cc8ffc

@ -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"

@ -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,

Loading…
Cancel
Save