Keep root dir the same as opening dir. #2581
-
How can I prevent the root directory of nvim-tree changing all the time? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That can be done - nvim-tree root only changing when you explicitly change it via, say, In fact, that is the default behaviour. Configuration setings like I believe that lunarvim does set some opinionated options. |
Beta Was this translation helpful? Give feedback.
I've taken a look at lunarvim and it is configured with
sync_root_with_cwd
,update_focused_file.update_root
and other tree root modifiers.https://github.com/LunarVim/LunarVim/blob/fc9716a65f304400417bf79c00912cd670272c8a/lua/lvim/core/nvimtree.lua
You can reset / clear those options as per defaults:
:help nvim-tree-setup