refactor(vim): make the completion menu wider

Due to starting to learn clojure, I've had java classes popping up in
the completion menu. Because they are so long it needs to be wider so I
can see then.
This commit is contained in:
Ade Attwood 2023-05-16 19:19:56 +01:00
parent 762d3d6bb2
commit ed100f4824

View file

@ -73,7 +73,7 @@ cmp.setup({
fields = { 'menu', 'abbr', 'kind' },
format = function(entry, vim_item)
-- Give the completion menu a consistent size to stop it jumping arround
local width = 34
local width = 40
if #vim_item.abbr > width then
vim_item.abbr = string.sub(vim_item.abbr, 1, width)
else