-
-
Notifications
You must be signed in to change notification settings - Fork 628
fix(view): Recreate tree buffer if deleted, and handle scenario where buffer already exists. #307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(view): Recreate tree buffer if deleted, and handle scenario where buffer already exists. #307
Conversation
This seems to fix the problems described in 296, but I need to test this more thoroughly. |
i was going to do it but thanks for doing it first :) |
This seems to work quite well on my end. So if we can get some of the people over in 296 to test this, I think we're good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost :D
Tested, works as expected! |
thanks again ! |
… buffer already exists. (nvim-tree#307)
Fixes #296.
This makes the tree able to recover when the tree buffer gets deleted or wiped. It also tackles scenarios where the NvimTree buffer already exists before initialization, as a result of i.e. a session being loaded. This is what I believe is the root of the problems described in 296.