Skip to content

Automatic buffer cleaning after session restore should be opt-in #778

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

Closed
cseickel opened this issue Feb 27, 2023 · 3 comments
Closed

Automatic buffer cleaning after session restore should be opt-in #778

cseickel opened this issue Feb 27, 2023 · 3 comments

Comments

@cseickel
Copy link
Contributor

@nhat-vo @cseickel this breaks when using views in neovim with mkview and loadview. It seems that Neo-tree now thinks that it is restoring a session, so it closes the neotree sidebar that's open even though I'm not restoring an entire session. This needs to be fixed

Originally posted by @mehalter in #748 (comment)

@khaneliman
Copy link

This explains why neo-tree started becoming really obnoxious and closing my sidebar every time i switch to an existing buffer...

@nhat-vo
Copy link
Collaborator

nhat-vo commented Mar 1, 2023

@cseickel just want to note that in #771 I added a check to only remove the invalid neo-tree buffers. If I'm not wrong, that should fix the issues mentioned with mkview and loadview.

@cseickel
Copy link
Contributor Author

cseickel commented Mar 1, 2023

@mehalter @khaneliman This feature is now disabled by default in version 2.52.

To enable the auto session cleanup, you will need to set this option:

  auto_clean_after_session_restore = true, -- Automatically clean up broken neo-tree buffers saved in sessions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants