From d721873986c9a1f255572f3ae364a231acac91ba Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:04:48 +0100 Subject: [PATCH] ensuring the tree is reloaded on buffer enter --- .../neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua b/ansible/roles/neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua index 6b35497..0cea4c1 100644 --- a/ansible/roles/neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua +++ b/ansible/roles/neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua @@ -109,6 +109,8 @@ return { hijack_cursor = true, -- Disable completely netrw, just in case disable_netrw = true, + -- Reload the tree whenever a buffer is opened + reload_on_bufenter = true, -- dynamically get the width of the tree width = get_width, })