From 51292d61e1140e056e58dccd974f42d2eb47ed14 Mon Sep 17 00:00:00 2001 From: n3wborn Date: Wed, 20 Sep 2023 14:37:58 +0200 Subject: [PATCH] refac(neotree): update follow_current_file options Some Neotree options have changed. follow_current_file is now a table and mus be an option in filesystem and/or buffer options --- lua/plugins/neotree.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua index 6f2dae3..9b50cd6 100644 --- a/lua/plugins/neotree.lua +++ b/lua/plugins/neotree.lua @@ -162,8 +162,10 @@ return { }, never_show = {}, -- remains hidden even if visible is toggled to true, this overrides always_show never_show_by_pattern = {}, -- uses glob style patterns + follow_current_file = { + enabled = true, + }, }, - follow_current_file = true, window = { mappings = { [''] = 'navigate_up', @@ -187,8 +189,9 @@ return { }, }, buffers = { - follow_current_file = true, -- This will find and focus the file in the active buffer every - -- time the current file is changed while the tree is open. + follow_current_file = { + enabled = true + }, group_empty_dirs = true, -- when true, empty folders will be grouped together show_unloaded = true, window = {