Don't select the first completion, it breaks some usage

This commit is contained in:
flyingscorpio@clevo 2022-08-10 00:33:47 +02:00
parent aade1ac1be
commit 44691c8aa5

View file

@ -20,11 +20,11 @@ cmp.setup({
['<C-e>'] = cmp.mapping.abort(),
['<Tab>'] = cmp.mapping.select_next_item(),
['<S-Tab>'] = cmp.mapping.select_prev_item(),
['<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' },
{ name = 'luasnip' }, -- For luasnip users.
{ name = 'luasnip' },
}, {
{ name = 'buffer' },
})