mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-10 19:41:15 +02:00
nvim: changed session restoring to be limited to projects, added renamer alias
This commit is contained 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,
|
||||
|
Reference in New Issue
Block a user