From 2ec0016e65c58791c4a4029252bcec5aa8ac5fc1 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:07:37 +0100 Subject: [PATCH] updated the tree whenever focusing a buffer --- .../neovim/files/nvim/lua/settings/lazy/plugins/nvimtree.lua | 5 +++++ 1 file changed, 5 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 6f8e523..79f7050 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 @@ -130,6 +130,11 @@ return { special_files = {}, -- Highlight files that have diagnostics highlight_diagnostics = true + }, + update_focused_file = { + -- Focus the file in the tree whenever it is focused in the editor + enable = true + }, }) local whichKey = require("which-key")