Use kind_icons
from mini.icons
icon provider
#458
Replies: 3 comments 6 replies
-
Hey. Is there some way to replicate this? {
"onsails/lspkind.nvim",
-- Adds icon for copilot using lspkind
opts = function(_, opts) opts.symbol_map.Copilot = "" end,
} |
Beta Was this translation helpful? Give feedback.
-
Included in the recipes documentation: https://cmp.saghen.dev/recipes.html#mini-icons |
Beta Was this translation helpful? Give feedback.
-
hey @the-fuckin-nobody, im having some problems with mini.icons general colors and as it seems we cannot pass custom colors like and i want to use custom colors, i came up with this: local kind = tostring(ctx.kind)
local lsp_icons = require("NeutronVim.plugins.configs.icons").lsp
local hl = (lsp_icons[kind] and lsp_icons[kind].hl) or select(2, require('mini.icons').get('lsp', kind)) which doesnt works ofc, afaik, the it becomes like |
Beta Was this translation helpful? Give feedback.
-
So this is how I setup up
blink.cmp
to use lspkind_icons
frommini.icons
to make the completion menu lookfrom this :
to this:
Here is the configuration:
If you also would like to use hl_groups from
mini.icons
, add the uncommented part in the highlight option:Note
Be Sure to also configure the
highlight
options for thekind
field too, so the colors get synchronized withkind_icon
.You can also do something similar to above, if you want to use
kind_icons
fromnvim-web-devicons
.Beta Was this translation helpful? Give feedback.
All reactions