Add icons to your nvim-cmp
LSP completions!
Inspiration taken from lspkind.nvim
Use :checkhealth cmp-minikind
to verify these are satisfied:
Make sure mini.icons
is enabled in your config.
{
"hrsh7th/nvim-cmp",
dependencies = {
"tranzystorekk/cmp-minikind.nvim",
},
config = function()
require("cmp"). setup {
formatting = {
format = require("cmp-minikind").cmp_format(),
}
}
end
}
{
-- Ordered components to be output as the displayed LSP kind:
--
-- "text": kind name, e.g. "Method"
-- "symbol": kind icon supplied by mini.icons, e.g. ""
components = { "symbol", "text" },
-- String to separate the components with
separator = " ",
}