Closed
Description
Description
When nvim-tree is opened in one tab, then in the other and I change directory with <c-]>
there, then go back to previous tab and reopen nvim-tree it loads the directory which I cd
ed into from the other tab.
Neovim version
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Operating system and version
Artix Linux latest release, also tested on macOS 10.15.7
nvim-tree version
Minimal config
vim.cmd[[
call plug#begin()
Plug 'nvim-tree/nvim-tree.lua'
call plug#begin()
]]
require('nvim-tree').setup()
Steps to reproduce
- nvim
- :NvimTreeToggle
- :tabnew
- :NvimTreeToggle
- cd into any directory with
<c-]>
- :tabprev
- :NvimTreeToggle
- :NvimTreeToggle
Expected behavior
Expected for nvim tree to reopen its window and load same directory I was in just before closing it in this tab
Actual behavior
nvim-tree loads the last opened directory, in this case the one we cd
ed into from the other tab