luukvbaal / nnn.nvim

File manager for Neovim powered by nnn.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make the nnn startup directory be the directory of the current file?

beautiful-boyyy opened this issue · comments

I open another file by nnn in vim, but the nnn startup directory is always the dir of the first file.

It opens in the current :h pwd. You can make a mapping to run NnnExplorer %:p:h (or %:p see :h expand).

It opens in the current :h pwd. You can make a mapping to run NnnExplorer %:p:h (or %:p see :h expand).

thank you