feat: Allow disabling icons

This commit is contained in:
hedy
2023-11-15 11:21:20 +08:00
parent ddd4fe4359
commit f356c29578
4 changed files with 62 additions and 13 deletions

View File

@@ -51,7 +51,8 @@ function M.icon_from_kind(kind)
if type(cfg.o.symbols.icon_fetcher) == 'function' then
local icon = cfg.o.symbols.icon_fetcher(kindstr)
if icon and icon ~= "" then
-- Allow returning empty string
if icon then
return icon
end
end