I've been dealing with a huge problem of NeoVim for weeks (also applies to Vim a GVim) and I failed to find the solution on my own. What's happening is that NERDTree is hiding the content of any folder or directory that contains brackets in its name, either [] or {}. Here's an example:
But probably, this problem is not directly related to NERDTree, maybe it's related to Netrw plugin, the default file explorer of Vim (I'm not sure, but I think that NERDTree works with Netrw on the background). See this:
Important: Note that I first tried to open the folder "category" and it worked properly. Then, I changed the name to "[category]" and Netrw began to hide the file index.tsx inside that folder.
I'm on:
- CMD (Windows Terminal), recently installed.
- NeoVim, latest version.
- NERDTree, latest version.
- I updated all my plugins after having this problem, but it's still there.
I don't know what else to add. I tested the same case with a clean instalation of Vim, without configs and plugins, and I got the same behavior from the code editor. I'll be so grateful if someone here can help me with this.
:e <directory>
to open NERDTree instead of netrw. If this is a bug you can consistently reproduce it's worth checking NERDTree's issue tracker and create a new one if it doesn't already exists.