feat(nvim): invoke completion menu manually

Don't open the completion menu automatically but invoke it when needed
using <C-Space>.
This commit is contained in:
Oliver Davies 2023-06-23 22:16:39 +01:00
parent 3416b68871
commit bd94dba7ff

View file

@ -78,7 +78,10 @@ vim.diagnostic.config({
cmp.setup({
preselect = 'item',
completion = {
completeopt = 'menu,menuone,noinsert'
autocomplete = false,
},
mapping = {
['<C-space>'] = cmp.mapping.complete(),
},
})