nvim-tree changes getcwd()
#3082
CoinCheung
started this conversation in
General
Replies: 1 comment
-
Please see wiki Open At Startup for all options and recipes available when starting nvim with nvim-tree. Trying with clean nvim:
Perhaps another plugin or something in your config is changing the paths. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I do not have nvim-tree:
The output of
:echo getcwd()
is /path/to/project/path/to/sub/folder.However, when I have already had nvim-tree:
···
$ cd /path/to/project
$ nvim ./path/to/sub/folder/file.cpp
···
Then the output of ·:echo getcwd()· is /path/to/project which is expected.
Do you know how could I align the behavior to let nvim always use the directory where I run the command of nvim, no matter if I open a file or folder?
Beta Was this translation helpful? Give feedback.
All reactions