-
Hello everyone, I'm using LazyVim with Neo Tree in a monorepo setup, and I'm encountering an issue with how the file explorer displays directories. Our monorepo has only one Git repository at the top. When I open Neo Tree using the 'root dir' option, it only shows one package in the monorepo, even though I opened Vim at the repo's root. In contrast, when I use the 'cwd' (current working directory) option, Neo Tree opens in the root of the entire repo as expected. I'm trying to understand the difference between 'cwd' and 'root dir' in this context and why there's a discrepancy in how Neo Tree displays the directories. Is there a specific configuration or setting that determines how Neo Tree identifies the root directory in a monorepo setup, especially when there's only one Git repository at the top level? Any insights or suggestions to resolve this issue would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Nvim Tree is a different project. Did you mean to start this discussion there or were you actually talking about Neo-tree? |
Beta Was this translation helpful? Give feedback.
-
Sorry just figured out that there is a difference. @cseickel, do you know what can cause this behaviour? |
Beta Was this translation helpful? Give feedback.
-
I think those commands/options are something specific to LazyVim. Neo-tree will just use the current working directory by default, unless the command is run with the |
Beta Was this translation helpful? Give feedback.
I think those commands/options are something specific to LazyVim.
Neo-tree will just use the current working directory by default, unless the command is run with the
dir=
option, in which case it will use that dir as the root. You can find information on how to use theNeotree
command on the README page: https://github.com/nvim-neo-tree/neo-tree.nvim?tab=readme-ov-file#the-neotree-command