When opening neovim via nvim /path/to/directory I want the current working directory of vim to be set to the given path instead of the current path of my terminal.
When opening a file instead it would make sense to me that the current working directory is set to the parent directory and when opening a new file or without arguments the default behavior would be fine.
Is there any option to accomplish something like this? I am aware of autochdir but it does not seem like what I want.
Background is that I want my fuzzy finder to look for file in the correct location when opening vim without having to remember to cd into that directory first.
vim -c "lcd $PWD" /some/file
.