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
|
||||
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,
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user