Skip to content

Commit

Permalink
blink: fallback to icon overrides when no mini icons available
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jan 28, 2025
1 parent 36c9d3b commit 9a8f949
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/nixvim/plugins/blink/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
text.__raw = ''
function(ctx)
local kind_icon, _, _ = require('mini.icons').get('lsp', ctx.kind)
-- Check for both nil and the default fallback icon
if not kind_icon or kind_icon == '󰞋' then
-- Use our configured kind_icons
return require('blink.cmp.config').appearance.kind_icons[ctx.kind] or ""
end
return kind_icon
end,
-- Optionally, you may also use the highlights from mini.icons
Expand Down

0 comments on commit 9a8f949

Please sign in to comment.