Skip to content

Commit

Permalink
fix(provider): implement proper fallback with mini.icons
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 7, 2024
1 parent 2456550 commit 0481bd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/astroui/status/provider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,10 @@ function M.file_icon(opts)

local _, mini_icons = pcall(require, "mini.icons")
if _G.MiniIcons then -- mini.icons
if is_file then
ft_icon, _ = mini_icons.get("file", bufname)
else
ft_icon, _ = mini_icons.get("filetype", filetype)
local is_default
ft_icon, _, is_default = mini_icons.get("file", bufname)
if is_default then
ft_icon, _, is_default = mini_icons.get("filetype", filetype)
end
else -- nvim-web-devicons
local devicons_avail, devicons = pcall(require, "nvim-web-devicons")
Expand Down

0 comments on commit 0481bd9

Please sign in to comment.