Skip to content

Commit 5a34ed8

Browse files
committed
fix(status): correctly check if mini.icons is loaded
1 parent 5dcfa8b commit 5a34ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/astroui/status/provider.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ function M.file_icon(opts)
429429
local is_file = vim.bo[bufnr].buftype == ""
430430

431431
local mini_icons_avail, mini_icons = pcall(require, "mini.icons")
432-
if mini_icons_avail then -- mini.icons
432+
if mini_icons_avail and _G.MiniIcons then -- mini.icons
433433
if is_file then
434434
ft_icon, _ = mini_icons.get("file", bufname)
435435
else

0 commit comments

Comments
 (0)