nvim-tree / nvim-tree.lua

A file explorer tree for neovim written in lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can we update `change_dir` to use `cd` instead of `lcd`?

svanharmelen opened this issue · comments

I have some really unexpected behavior and tracked it down to the fact that lcd in used instead of cd here. Would it be possible to change that or to make it optional to change dirs using cd?

I mainly use the keymapping to change dirs in the tree view, but then the view starts to switch which dirs to show when I just trough buffers that were already open. Think #776 is also mentioning something along these lines.

If there is a way I can add a custom mapping to fix it for myself I would also be happy, but maybe even better to not use lcd at all?

commented

I used cd at first but people complained because they did not want nvim-tree to change the directory for the whole editor 😄
Maybe introducing a config option would be appropriate.

Ow really 😅 Different people, different preferences I guess 🙂

A config option would indeed be great!