feat(cmp): added kind icons

This commit is contained in:
Folke Lemaitre 2022-12-31 17:03:39 +01:00
parent be1befeac2
commit 79a6992676
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -29,7 +29,6 @@ return {
-- auto completion
{
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
@ -60,6 +59,15 @@ return {
{ name = "buffer" },
{ name = "path" },
}),
formatting = {
format = function(_, item)
local icons = require("config.icons").kinds
if icons[item.kind] then
item.kind = icons[item.kind] .. item.kind
end
return item
end,
},
})
end,
},