mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-26 18:59:00 +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
|
-- auto completion
|
||||||
{
|
{
|
||||||
|
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
@ -60,6 +59,15 @@ return {
|
||||||
{ name = "buffer" },
|
{ name = "buffer" },
|
||||||
{ name = "path" },
|
{ 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,
|
end,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue