fix: icon hl width for various pickers (#2450)

This commit is contained in:
James Trew
2023-04-09 04:04:20 -04:00
committed by GitHub
parent 942fe5faef
commit c20d4fb592
3 changed files with 19 additions and 15 deletions

View File

@@ -440,13 +440,14 @@ utils.transform_devicons = load_once(function()
local icon, icon_highlight = devicons.get_icon(basename, utils.file_extension(basename), { default = false })
if not icon then
icon, icon_highlight = devicons.get_icon(basename, nil, { default = true })
icon = icon or " "
end
local icon_display = (icon or " ") .. " " .. (display or "")
local icon_display = icon .. " " .. (display or "")
if conf.color_devicons then
return icon_display, icon_highlight
return icon_display, icon_highlight, icon
else
return icon_display, nil
return icon_display, nil, icon
end
end
else