Skip to content

Commit fa3c458

Browse files
authored
fix(#3267): renderer.icons.*_placement 'right_align' at the right hand edge, not the right of the name (#3270)
1 parent 516f95e commit fa3c458

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/nvim-tree/renderer/builder.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ function Builder:format_line(indent_markers, arrows, icon, name, node)
182182
for _, d in ipairs(self.decorators) do
183183
b = d:as(BuiltinDecorator)
184184
if b then
185-
add_to_end(line, b:icons_right_align(node))
185+
add_to_end(rights, b:icons_right_align(node))
186186
elseif api_node then
187-
add_to_end(line, d:icons_right_align(api_node))
187+
add_to_end(rights, d:icons_right_align(api_node))
188188
end
189189
end
190190
if #rights > 0 then

0 commit comments

Comments
 (0)