Skip to content

Commit 53ed6f7

Browse files
committed
personal
1 parent f7c09bd commit 53ed6f7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

lua/nvim-tree/renderer/builder.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ end
196196
---@return HighlightedString[]
197197
function Builder:format_line(indent_markers, arrows, icon, name, node)
198198
local added_len = 0
199+
200+
-- add a space after the icon to make them bigger on the terminal
201+
if icon.str then
202+
icon.str = icon.str .. " "
203+
end
204+
199205
local function add_to_end(t1, t2)
200206
if not t2 then
201207
return

lua/nvim-tree/renderer/decorator/git.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ function DecoratorGit:calculate_highlight(node)
211211
return nil
212212
end
213213

214+
-- only apply the git highlight to the filename for "git ignored" files
215+
if git_status ~= { "!!" } then
216+
return nil
217+
end
218+
214219
if node.nodes then
215220
return self.folder_hl[git_status[1]]
216221
else

0 commit comments

Comments
 (0)