refactor(columns): Add custom icons from conf param

This commit is contained in:
Juan David Merchan Torres 2023-03-31 14:27:53 -05:00
parent cb54e03490
commit c19f2d74de

View file

@ -205,12 +205,12 @@ if has_devicons then
end end
end end
if type == "directory" then if type == "directory" then
return { config.icons.directory, "OilDir" } return { conf.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 config.icons.default_file icon = icon or conf.default_file
return { icon .. " ", hl } return { icon .. " ", hl }
end end
end, end,