fix the completion menu issue

nvim-basic-ide
Andy Teijelo 2022-09-23 13:14:21 -04:00
parent 2518f5fee8
commit 2cce901332
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@ cmp.setup({
format = function(entry, vim_item)
vim_item.abbr = string.sub(vim_item.abbr, 1, 20)
vim_item.kind = string.sub(vim_item.kind, 1, 10)
-- vim_item.menu = string.sub(vim_item.menu, 1, 10)
if vim_item.menu then
vim_item.menu = string.sub(vim_item.menu, 1, 10)
end
return vim_item
end
}