fix the completion menu issue

This commit is contained in:
Andy Teijelo 2022-09-23 13:14:21 -04:00
parent 2518f5fee8
commit 2cce901332

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
}