Skip to content

Commit

Permalink
fix(#2930): empty groups expanded on reload (#2935)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-courtis authored Sep 30, 2024
1 parent 1ae1c33 commit 4520c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-tree/explorer/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function Explorer:reload(node, git_status)

local is_root = not node.parent
local child_folder_only = explorer_node.has_one_child_folder(node) and node.nodes[1]
if config.group_empty and not is_root and child_folder_only then
if config.renderer.group_empty and not is_root and child_folder_only then
node.group_next = child_folder_only
local ns = self:reload(child_folder_only, git_status)
node.nodes = ns or {}
Expand Down

0 comments on commit 4520c03

Please sign in to comment.