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:
parent
3416b68871
commit
bd94dba7ff
|
@ -78,7 +78,10 @@ vim.diagnostic.config({
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
preselect = 'item',
|
preselect = 'item',
|
||||||
completion = {
|
completion = {
|
||||||
completeopt = 'menu,menuone,noinsert'
|
autocomplete = false,
|
||||||
|
},
|
||||||
|
mapping = {
|
||||||
|
['<C-space>'] = cmp.mapping.complete(),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Reference in a new issue