File tree disapears after session reload with persisted.nvim
#2220
Replies: 2 comments
-
Sessions and lazy loading interfere with normal order of operations and are very unlikely to behave as expected when you use a Another user had similar issues with auto-session. Perhaps that recipe might help. Moving to a discussion as the problem appears to be with your configuration. This will be considered a bug we can fix if you can provide a Clean Room Replicator. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The autocommand works, thanks! vim.api.nvim_create_autocmd({ 'BufEnter' }, {
pattern = 'NvimTree*',
callback = function()
local api = require('nvim-tree.api')
local view = require('nvim-tree.view')
if not view.is_visible() then
api.tree.open()
end
end,
})``` |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When I close a session with
:q!
with Nvimtree open, after reloading the session withSessionLoadLast
from persisted, the file tree buffer appears empty.Neovim version
Operating system and version
macOS 12.4
nvim-tree version
736c7ff
Minimal config
Steps to reproduce
:q!
and nvim tree openExpected behavior
No response
Actual behavior
No response
Beta Was this translation helpful? Give feedback.
All reactions