Switch buffer in neovim -> update nvim-tree selection

I’m using GitHub - nvim-tree/nvim-tree.lua: A file explorer tree for neovim written in lua

When I switch to a different buffer, is it possible to have the nvim-tree auto highlight the file backing the buffer ?

Thanks!

1 Like

It’s possible. As per their README, check :help nvim-tree-setup for config options.

I believe it’s update_focused_file.

1 Like