nvim: usar Ctrl+Enter para confirmar compe

This commit is contained in:
Cat /dev/Nulo 2021-10-24 13:44:03 -03:00
parent b4906a50ae
commit 9c68824846

View file

@ -21,7 +21,7 @@ cmp.setup({
['<C-f>'] = cmp.mapping.scroll_docs(4), ['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(), ['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.close(), ['<C-e>'] = cmp.mapping.close(),
['<CR>'] = cmp.mapping.confirm({ select = true }), ['<C-CR>'] = cmp.mapping.confirm({ select = true }),
}, },
sources = { sources = {
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },