+ Don't implicitly select

This commit is contained in:
ziro 2022-07-03 17:01:04 +07:00
parent 9cb2e7af38
commit 55667ec64e
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -332,7 +332,7 @@ lua <<EOF
['<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.
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()