1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-10 11:31:16 +02:00

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

This commit is contained in:
2024-04-06 04:59:13 +02:00
parent 7e576a888e
commit 3835cc8ffc
2 changed files with 2 additions and 3 deletions

View File

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