Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirmation behavior Insert does not work #65

Open
ydarma opened this issue Dec 11, 2023 · 0 comments
Open

Confirmation behavior Insert does not work #65

ydarma opened this issue Dec 11, 2023 · 0 comments

Comments

@ydarma
Copy link

ydarma commented Dec 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant