mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
fix: icon colors (#253)
This commit is contained in:
parent
a75b403ea0
commit
476f70e1b0
@ -6,8 +6,11 @@ local M = {
|
|||||||
---@return string
|
---@return string
|
||||||
---@return string
|
---@return string
|
||||||
get_icon = function(name, ext, opts)
|
get_icon = function(name, ext, opts)
|
||||||
local ok, web_devicons = pcall(require, "nvim-web-devicons")
|
local ok, web_devicons = pcall(require, "nvim-web-devicons", opts)
|
||||||
return ok and web_devicons.get_icon(name, ext, opts) or "", ""
|
if not ok then
|
||||||
|
return "", ""
|
||||||
|
end
|
||||||
|
return web_devicons.get_icon(name, ext)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user