fix: icon colors (#253)

This commit is contained in:
Turiiya 2024-08-28 07:25:59 +02:00 committed by GitHub
parent a75b403ea0
commit 476f70e1b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,8 +6,11 @@ local M = {
---@return string
---@return string
get_icon = function(name, ext, opts)
local ok, web_devicons = pcall(require, "nvim-web-devicons")
return ok and web_devicons.get_icon(name, ext, opts) or "", ""
local ok, web_devicons = pcall(require, "nvim-web-devicons", opts)
if not ok then
return "", ""
end
return web_devicons.get_icon(name, ext)
end,
}