feat(columns): Change to use custom icons

This commit is contained in:
Juan David Merchan Torres 2023-03-29 14:48:00 -05:00
parent bf20bca78d
commit 6dc65dcf83

View file

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