Open
Description
Hi,
Whatever the value for beavior
otption of cmp.mapping.confirm
the text under the cursor is replaced.
require'cmp'.setup {
...
mapping = {
['<C-p>'] = cmp.mapping.select_prev_item({behavior = cmp.SelectBehavior.Select}),
['<C-n>'] = cmp.mapping.select_next_item({behavior = cmp.SelectBehavior.Select}),
['<CR>'] = cmp.mapping.confirm({select = false, behavior=cmp.ConfirmBehavior.Insert}),
}
}
This seems conform to the documentation
Thank you very much
Metadata
Assignees
Labels
No labels