From bb17be08840906f1ae935c1e864da2febf94539f Mon Sep 17 00:00:00 2001 From: john wozniak Date: Mon, 1 Apr 2024 09:47:46 -0400 Subject: [PATCH] enabled focus when a file is open in buffer --- lua/custom/plugins/filetree.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/custom/plugins/filetree.lua b/lua/custom/plugins/filetree.lua index 349c3685..fc58d83b 100644 --- a/lua/custom/plugins/filetree.lua +++ b/lua/custom/plugins/filetree.lua @@ -529,7 +529,7 @@ return { group_empty_dirs = false, -- when true, empty folders will be grouped together search_limit = 50, -- max number of search results when using filters follow_current_file = { - enabled = false, -- This will find and focus the file in the active buffer every time + enabled = true, -- This will find and focus the file in the active buffer every time -- -- the current file is changed while the tree is open. leave_dirs_open = false, -- `false` closes auto expanded dirs, such as with `:Neotree reveal` },