Replies: 2 comments 1 reply
-
nvim-tree does not do any magic on startup, only acting upon changes at runtime. Take a look at Open At Startup for some recipes you can use. For directories, I use Open For Directories And Change Neovim's Directory Converting this to a discussion. We can reopen a bug if an issue arises. |
Beta Was this translation helpful? Give feedback.
-
strangely nothing of your suggestions worked. I had to add this line inside my nvim config : |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When I'm calling neovim by adding a path parameter, nvim-tree don't show the good directory, it only show the directory of where I executed the command.
It seem very basic but I've checked a lot of issues and other website posts, everyone just suggest to add the
update_focused_file
section withupdate_cwd
, and it work, but not for me.My config is not new, I've used it for a year and everything was ok until I reinstall my computer today, it doesn't work anymore.
Neovim version
Operating system and version
Linux 6.5.6-arch2-1 x86_64
nvim-tree version
59e65d8
Clean room replication
Steps to reproduce
nvim Document/randomDirectory
Expected behavior
I want nvim-tree to show the directory of the path that I pass as parameter when I call nvim, for exemple if I execute
nvim /myDirectory
I want nvim-tree to show only what is on/myDirectory
, not the root directory of were the command is executedActual behavior
nvim-tree only show the directory of were the
nvim /yourPath
command is executedBeta Was this translation helpful? Give feedback.
All reactions