-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
When opening a file Nerdtree disappear (only if i open the file with enter) #1220
Comments
Btw i think that the no trees to mirror is not really related to my issue! |
I can confirm this bug. Although I do not get the "no trees to mirror" message. |
I'm experiencing the same error within NeoVim on macOS. No error messages though. |
Try
The important option is 'keepopen': 1. The other options are the default values. See It seems this new behaviour was introduced yesterday but I didn't investigate the actual cause. |
Can confirm this works. Thanks! |
Yeah, i too can confirm it works!! |
One of the recent pull requests changed the default behavior of the |
@dreamos82 The "no trees to mirror" error message you're seeing is caused by your autocommand statement: autocmd BufWinEnter * NERDTreeMirror It's an entirely expected message to appear, especially before you've opened any NERDTree, but to get rid of it, change that statement to this: autocmd BufWinEnter * silent NERDTreeMirror |
Thank you @PhilRunninger! I can confirm that after last pull from git it works even without the .vimrc config line you suggested. |
I'm using Neovim v0.4.4
Basically i configured nerdtree to open in a tab on the left side, using more or less the same configuration i used in other nerdtree installation.
Basically if i try to navigate to the file in the nerdtree pane using keyboard and i open it pressing enter the Nerdtree pane disappear, and i see the message: "Nerdtree: no trees to mirror"
But if i open the same file pressing "o" or "t" or double clicking on it, the tree stays open.
The configuration i'm using is:
I saw that closed issue that could be related to my problem: #145 But unfortunately the link there is no longer active, so i can't try the solution proposed.
I'm using neovim on fedora 33
The text was updated successfully, but these errors were encountered: