Skip to content

Commit

Permalink
refac(neotree): update follow_current_file options
Browse files Browse the repository at this point in the history
Some Neotree options have changed.
follow_current_file is now a table and mus be an option in filesystem and/or buffer options
  • Loading branch information
n3wborn committed Sep 20, 2023
1 parent 70dfb44 commit 51292d6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lua/plugins/neotree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
['<bs>'] = 'navigate_up',
Expand All @@ -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 = {
Expand Down

0 comments on commit 51292d6

Please sign in to comment.