nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
5.93k stars 462 forks source link

nvim-tree extension does not reflect folder when using specific nvim-tree commands #716

Open zenyusy opened 2 years ago

zenyusy commented 2 years ago

https://github.com/nvim-lualine/lualine.nvim/blob/master/lua/lualine/extensions/nvim-tree.lua

the nvim-tree extension basically sets cwd on lualine.

if i use nvim-tree.core.init (https://github.com/kyazdani42/nvim-tree.lua/blob/master/lua/nvim-tree/core.lua#L11) to open nvim-tree, e.g. by :NvimTreeOpen <folder>, cwd is untouched. so the location of nvim-tree and the one shown on lualine are divergent.

( nvim-tree.core.get_cwd returns the dir of nvim-tree. )

shadmansaleh commented 2 years ago

You can throw in a pr . As I don't use nvim-tree I don't know much about it.