Open zenyusy opened 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.
cwd
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.init
:NvimTreeOpen <folder>
( nvim-tree.core.get_cwd returns the dir of nvim-tree. )
nvim-tree.core.get_cwd
You can throw in a pr . As I don't use nvim-tree I don't know much about it.
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. )