feat(columns): Add compatibility with previous versions

This commit is contained in:
Juan David Merchan Torres 2023-04-02 18:31:02 -05:00
parent f687b721e9
commit 98a186e8f9

View file

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