diff --git a/lua/kickstart/plugins/neo-tree.lua b/lua/kickstart/plugins/neo-tree.lua index 549629ae..223d2dde 100644 --- a/lua/kickstart/plugins/neo-tree.lua +++ b/lua/kickstart/plugins/neo-tree.lua @@ -11,6 +11,10 @@ vim.keymap.set('n', '\\', 'Neotree reveal', { desc = 'NeoTree reveal', require('neo-tree').setup { filesystem = { + follow_current_file = { + enabled = true, -- This finds and focuses the file in the active buffer every time a new file is opened + leave_dirs_open = false, -- Closes folders when you leave them (set to true if you prefer keeping them open) + }, window = { mappings = { ['\\'] = 'close_window',