config: nvim: require explicit selection to confirm completed itme
This commit is contained in:
parent
355ae60ac3
commit
b56aecc78d
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ cmp.setup({
|
|||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
['<C-e>'] = cmp.mapping.abort(),
|
||||
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
||||
['<CR>'] = cmp.mapping.confirm({ select = false }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
||||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'nvim_lsp', keyword_length = 3 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue