From 4520c0355cc561830ee2cf90dc37a2a75abf7995 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Mon, 30 Sep 2024 11:21:27 +1000 Subject: [PATCH] fix(#2930): empty groups expanded on reload (#2935) --- lua/nvim-tree/explorer/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/explorer/init.lua b/lua/nvim-tree/explorer/init.lua index a52a6bc8beb..6ae149b6d86 100644 --- a/lua/nvim-tree/explorer/init.lua +++ b/lua/nvim-tree/explorer/init.lua @@ -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 {}