fix(util): only use mini.icons if it has been setup. Closes #2199

This commit is contained in:
Folke Lemaitre 2025-10-20 17:53:09 +02:00
parent a32735b9e8
commit 774bf9d8c8
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -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