fix: nvim-tree no longer stops working when restoring a session

add nvim-tree as a dependency of auto-session prevents nvim-tree commands not
working when restoring a session with sessionopts+='globals'
This commit is contained in:
2024-12-07 18:48:56 -05:00
parent bbb3b9043f
commit a9a691cad2
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ o.undodir = { vim.fn.stdpath('state') .. '/undo/' .. '/' }
-- │ NvimTree from working
-- │ after session is restored.
-- └
o.sessionoptions = 'buffers,curdir,folds,localoptions,help,tabpages,terminal,winsize,winpos'
o.sessionoptions = 'globals,buffers,curdir,folds,localoptions,help,tabpages,terminal,winsize,winpos'
-- ────────────────────────────────────────────────── split windows ──
o.splitright = true
o.splitbelow = true
@@ -1,5 +1,11 @@
return {
'rmagatti/auto-session',
-- ┌
-- │ add nvim-tree as a dependency to stop sessions to
-- │ reload with nvim-tree commands unavailable when saving
-- │ with sessionopts+='globals'
-- └
dependencies = { 'nvim-tree/nvim-tree.lua' },
lazy = false,
---@module "auto-session"