Merge branch 'NikolaM-Dev-feature-custom-icons'

This commit is contained in:
Steven Arcangeli 2023-04-11 08:29:23 -07:00
commit fb8b101d7c
3 changed files with 13 additions and 5 deletions

View file

@ -205,12 +205,13 @@ if has_devicons then
end
end
if type == "directory" then
return { "", "OilDir" }
local icon = conf and conf.directory or ""
return { icon, "OilDir" }
else
local icon
local hl
icon, hl = devicons.get_icon(name)
icon = icon or ""
icon = icon or (conf and conf.default_file or "")
return { icon .. " ", hl }
end
end,