mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +02:00
feat(cmp): added kind icons
This commit is contained in:
parent
be1befeac2
commit
79a6992676
1 changed files with 9 additions and 1 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue