let g:NERDTreeChDirMode=3 and expect
nvim ~/Projects/foo to run nvim with
:pwd set to
~/Projects/foo. But instead it has
:pwd set to my home directory from which I am running it. As a result when I go to file in NERDTree view, file content replaces NERDTree view, and if I then do NERDTreeToggle, it has root in the home directory instead of project directory.
Is it possible to pass directory to Vim and automatically cd into it and has NERDTree root there ?