When lspkind.nvim sets the vim_item.menu field of an entry, it may overwrite some data already stored in the variable. An example of this is the seldomly employed labelDetails.description, which is concatenated by nvim-cmp with the menu field before the formatting.format function is called on the item.
if opts.menu ~= nil then
vim_item.menu = opts.menu[entry.source.name]
end
When
lspkind.nvim
sets thevim_item.menu
field of an entry, it may overwrite some data already stored in the variable. An example of this is the seldomly employedlabelDetails.description
, which is concatenated bynvim-cmp
with themenu
field before theformatting.format
function is called on the item.This simple fix solves the problem.