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
+2 -2
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
@@ -95,4 +95,4 @@ o.ignorecase = true
o.smartcase = true
o.iskeyword:append('-') -- consider string-string as a whole word
-- ───────────────────────────────────────────────────── completion ──
o.completeopt = 'menu,preview,noselect'
o.completeopt = 'menu,preview,noselect'