@@ -64,14 +64,6 @@ function Builder:configure_icon_padding(padding)
64
64
return self
65
65
end
66
66
67
- function Builder :configure_git_icons_placement (where )
68
- if where ~= " after" and where ~= " before" and where ~= " signcolumn" then
69
- where = " before" -- default before
70
- end
71
- self .git_placement = where
72
- return self
73
- end
74
-
75
67
function Builder :configure_symlink_destination (show )
76
68
self .symlink_destination = show
77
69
return self
212
204
--- @return HighlightedString[] | nil icon
213
205
function Builder :_get_git_icons (node )
214
206
local git_icons = self .decorators .git :get_icons (node )
215
- if git_icons and # git_icons > 0 and self .git_placement == " signcolumn" then
207
+ if git_icons and # git_icons > 0 and self .decorators . git . icon_placement == ICON_PLACEMENT . signcolumn then
216
208
table.insert (self .signs , {
217
209
sign = git_icons [1 ].hl [1 ],
218
210
lnum = self .index + 1 ,
@@ -349,7 +341,7 @@ function Builder:_format_line(indent_markers, arrows, icon, name, git_icons, dia
349
341
350
342
local line = { indent_markers , arrows }
351
343
add_to_end (line , { icon })
352
- if git_icons and self .git_placement == " before" then
344
+ if git_icons and self .decorators . git . icon_placement == ICON_PLACEMENT . before then
353
345
add_to_end (line , git_icons )
354
346
end
355
347
if modified_icon and self .decorators .modified .icon_placement == ICON_PLACEMENT .before then
@@ -364,7 +356,7 @@ function Builder:_format_line(indent_markers, arrows, icon, name, git_icons, dia
364
356
365
357
add_to_end (line , { name })
366
358
367
- if git_icons and self .git_placement == " after" then
359
+ if git_icons and self .decorators . git . icon_placement == ICON_PLACEMENT . after then
368
360
add_to_end (line , git_icons )
369
361
end
370
362
if modified_icon and self .decorators .modified .icon_placement == ICON_PLACEMENT .after then
0 commit comments