Skip to content

Commit 4520c03

Browse files
authored
fix(#2930): empty groups expanded on reload (#2935)
1 parent 1ae1c33 commit 4520c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/explorer/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function Explorer:reload(node, git_status)
198198

199199
local is_root = not node.parent
200200
local child_folder_only = explorer_node.has_one_child_folder(node) and node.nodes[1]
201-
if config.group_empty and not is_root and child_folder_only then
201+
if config.renderer.group_empty and not is_root and child_folder_only then
202202
node.group_next = child_folder_only
203203
local ns = self:reload(child_folder_only, git_status)
204204
node.nodes = ns or {}

0 commit comments

Comments
 (0)