fix the completion menu issue
This commit is contained in:
parent
2518f5fee8
commit
2cce901332
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,9 @@ cmp.setup({
|
||||||
format = function(entry, vim_item)
|
format = function(entry, vim_item)
|
||||||
vim_item.abbr = string.sub(vim_item.abbr, 1, 20)
|
vim_item.abbr = string.sub(vim_item.abbr, 1, 20)
|
||||||
vim_item.kind = string.sub(vim_item.kind, 1, 10)
|
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
|
return vim_item
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue