Closed grezp closed 2 years ago
All other default mappings work as expected. For example, <C-n> for next, <C-p> for previous, <C-e> to close.
<C-n>
<C-p>
<C-e>
However, <C-y> to confirm does not work on either command mode or while searching. It places a ^Y char.
<C-y>
^Y
Creating a mapping config does not work:
mapping = { ['<C-y>'] = cmp.mapping.confirm({ select = true }), }
How can I enable this?
It works for me, I do set it up in main cmp.setup({}), like that:
cmp.setup({})
cmp.setup({ mapping = { ['<C-y>'] = cmp.mapping(cmp.mapping.confirm { select = true }, { 'i', 'c' }), } })
All other default mappings work as expected. For example,
<C-n>
for next,<C-p>
for previous,<C-e>
to close.However,
<C-y>
to confirm does not work on either command mode or while searching. It places a^Y
char.Creating a mapping config does not work:
How can I enable this?