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:
@@ -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'
|
||||
|
||||
@@ -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"
|
||||
@@ -26,4 +32,4 @@ return {
|
||||
pre_save_cmds = {},
|
||||
post_restore_cmds = {},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user