|
|
@ -45,10 +45,15 @@ cmp.setup({ |
|
|
|
nvim_lsp = 'λ', |
|
|
|
nvim_lsp = 'λ', |
|
|
|
vsnip = '⋗', |
|
|
|
vsnip = '⋗', |
|
|
|
buffer = 'Ω', |
|
|
|
buffer = 'Ω', |
|
|
|
path = '🖫', |
|
|
|
path = '•', |
|
|
|
} |
|
|
|
} |
|
|
|
item.menu = menu_icon[entry.source.name] |
|
|
|
item.menu = menu_icon[entry.source.name] |
|
|
|
return item |
|
|
|
return item |
|
|
|
end, |
|
|
|
end, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
-- This will let enter work like expected and tab can be used to pick a suggestion. |
|
|
|
|
|
|
|
preselect = cmp.PreselectMode.None |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- This also prevents enter from selecting the first suggestion. |
|
|
|
|
|
|
|
vim.o.completeopt = "menuone,noselect,preview" |
|
|
|