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" alias svi="sudo nvim"
command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d"
command -v nvim >/dev/null && alias vi="nvim" vidiff="nvim -d" command -v nvim >/dev/null && alias vi="nvim" vidiff="nvim -d"
alias renamer="nvim +Renamer"
# weather # weather
alias weather="curl wttr.in" alias weather="curl wttr.in"

@ -18,9 +18,7 @@ vim.api.nvim_create_autocmd({ "VimEnter" }, {
return return
end end
local session_info = Session.info(vim.loop.cwd()) local session_info = Session.info(vim.loop.cwd())
if session_info == nil then if session_info ~= nil then
Session.restore_latest()
else
Session.restore(vim.loop.cwd()) Session.restore(vim.loop.cwd())
end end
end, end,

Loading…
Cancel
Save