Closed
Description
Hi, I don't know if this is because of a recent update, but whenever I switch to a buffer in another directory using bnext
or bprevious
, nvimtree always opens up on every switch.
This is my setup file for nvimtree:
nvimtree.setup {
filters = { custom = { '*.tmp', '.git' } },
disable_netrw = true,
hijack_netrw = true,
open_on_setup = true,
ignore_ft_on_setup = { 'alpha' },
open_on_tab = false,
hijack_cursor = true,
update_cwd = true,
update_focused_file = { enable = true, update_cwd = true, ignore_list = {} },
system_open = {
cmd = nil,
args = {},
},
view = {
width = 25
side = 'left',
mappings = { custom_only = false, list = {} },
},
renderer = {
indent_markers = { enable = true, icons = { corner = '└ ', edge = '│ ', none = ' ' } },
},
}
I found that setting update_focused_file.update_cwd
to false
disables that behavior, but I also lose the automatic directory switching which I really like.
Is there any way to keep the automatic directory switching while disabling nvimtree from opening up on every buffer switch?
neovim version:
NVIM v0.8.0-dev+1841-g3cd22a348
Build type: Release
LuaJIT 2.1.0-beta3
nvimtree commit: 104292c
Thank you!