mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
18 lines
375 B
Lua
18 lines
375 B
Lua
---@class FrecencyWebDevicons
|
|
local M = {
|
|
---@param name string?
|
|
---@param ext string?
|
|
---@param opts table?
|
|
---@return string
|
|
---@return string
|
|
get_icon = function(name, ext, opts)
|
|
local ok, web_devicons = pcall(require, "nvim-web-devicons", opts)
|
|
if not ok then
|
|
return "", ""
|
|
end
|
|
return web_devicons.get_icon(name, ext)
|
|
end,
|
|
}
|
|
|
|
return M
|