ci: systematically pull colors from nvim-web-devicons

This commit is contained in:
Barrett Ruth 2026-03-02 20:27:17 -05:00
parent ba45790910
commit e9a1612365
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
4 changed files with 124 additions and 73 deletions

View file

@ -29,9 +29,11 @@ function M.setup()
end
---@param icon_name string
---@return string hl_group
---@return string? hl_group
function M.get(icon_name)
return to_hl_group(icon_name)
if colors[icon_name] then
return to_hl_group(icon_name)
end
end
return M