Don't select completions with CR

This commit is contained in:
Trevor Vallender 2023-04-03 14:22:39 +01:00
parent eca6f4504b
commit 0b16c404de
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,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 }),
['<C-y>'] = cmp.mapping.confirm({ select = true }),
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },