@@ -63,14 +63,6 @@ function Builder:configure_icon_padding(padding)
63
63
return self
64
64
end
65
65
66
- function Builder :configure_git_icons_placement (where )
67
- if where ~= " after" and where ~= " before" and where ~= " signcolumn" then
68
- where = " before" -- default before
69
- end
70
- self .git_placement = where
71
- return self
72
- end
73
-
74
66
function Builder :configure_symlink_destination (show )
75
67
self .symlink_destination = show
76
68
return self
194
186
--- @return HighlightedString[] | nil icon
195
187
function Builder :_get_git_icons (node )
196
188
local git_icons = self .decorators .git :get_icons (node )
197
- if git_icons and # git_icons > 0 and self .git_placement == " signcolumn" then
189
+ if git_icons and # git_icons > 0 and self .decorators . git . icon_placement == ICON_PLACEMENT . signcolumn then
198
190
table.insert (self .signs , {
199
191
sign = git_icons [1 ].hl [1 ],
200
192
lnum = self .index + 1 ,
@@ -331,7 +323,7 @@ function Builder:_format_line(indent_markers, arrows, icon, name, git_icons, dia
331
323
332
324
local line = { indent_markers , arrows }
333
325
add_to_end (line , { icon })
334
- if git_icons and self .git_placement == " before" then
326
+ if git_icons and self .decorators . git . icon_placement == ICON_PLACEMENT . before then
335
327
add_to_end (line , git_icons )
336
328
end
337
329
if modified_icon and self .decorators .modified .icon_placement == ICON_PLACEMENT .before then
@@ -346,7 +338,7 @@ function Builder:_format_line(indent_markers, arrows, icon, name, git_icons, dia
346
338
347
339
add_to_end (line , { name })
348
340
349
- if git_icons and self .git_placement == " after" then
341
+ if git_icons and self .decorators . git . icon_placement == ICON_PLACEMENT . after then
350
342
add_to_end (line , git_icons )
351
343
end
352
344
if modified_icon and self .decorators .modified .icon_placement == ICON_PLACEMENT .after then
0 commit comments