Skip to content

Confirmation behavior Insert does not work #65

Open
@ydarma

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions