mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(util): only use mini.icons if it has been setup. Closes #2199
This commit is contained in:
parent
a32735b9e8
commit
774bf9d8c8
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ function M.icon(name, cat, opts)
|
|||
opts.fallback = opts.fallback or {}
|
||||
local try = {
|
||||
function()
|
||||
return require("mini.icons").get(cat or "file", name)
|
||||
return MiniIcons.get(cat or "file", name)
|
||||
end,
|
||||
function()
|
||||
if cat == "directory" then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue