From b856d0a0c3238e49d6385d830ea8c7785b1eccc8 Mon Sep 17 00:00:00 2001 From: Tillman Jex <83029642+tjex@users.noreply.github.com> Date: Sat, 9 Sep 2023 03:27:15 +0200 Subject: [PATCH] fix(#2392): bookmarks icon placement when group_empty (#2402) * fix: marks now align with nodes when parent nodes are empty and group_empty option enabled * run stylua --------- Co-authored-by: Alexander Courtis --- lua/nvim-tree/marks/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/marks/init.lua b/lua/nvim-tree/marks/init.lua index 07eb899a..f10dbf3a 100644 --- a/lua/nvim-tree/marks/init.lua +++ b/lua/nvim-tree/marks/init.lua @@ -63,7 +63,7 @@ function M.draw() local add = core.get_nodes_starting_line() - 1 Iterator.builder(core.get_explorer().nodes) :recursor(function(node) - return node.open and node.nodes + return node.group_next and { node.group_next } or (node.open and node.nodes) end) :applier(function(node, idx) if M.get_mark(node) then