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

nvim-cmp messes up mappings #1

Open
ii14 opened this issue Jul 30, 2022 · 0 comments
Open

nvim-cmp messes up mappings #1

ii14 opened this issue Jul 30, 2022 · 0 comments

Comments

@ii14
Copy link
Owner

ii14 commented Jul 30, 2022

When nvim-cmp has defined mapping like ['<CR>'] = map.confirm({ select = false }), you have to hit enter twice when selecting entry from repl completion, even if cmp is disabled on the repl buffer.

Workaround:

require('cmp').setup.filetype('neorepl', {
  enabled = false,
  mapping = {
    ['<CR>'] = function(fallback)
      fallback()
    end,
  },
})
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