We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey @hrsh7th, hope you are doing well!
How should I go about mapping enter to work with cmp and pears? For compe I had:
require('pears').setup(function(conf) -- Integrate with compe. conf.on_enter(function(pears_on_enter) if vim.fn.pumvisible() == 1 and vim.fn.complete_info().selected ~= -1 then return vim.fn['compe#confirm'] '<CR>' else pears_on_enter() end end) conf.pair('<', nil) end)
Now, with cmp I also have that CR mapping:
['<CR>'] = cmp.mapping.confirm { behavior = cmp.ConfirmBehavior.Replace, select = true, },
:imap <CR> returns
:imap <CR>
i <CR> *@v:lua.cmp.utils.keymap.expr("i", "<CR>")
So I assume cmp gets loaded after cmp and overrides the mapping. How to marry the two together?
Thanks!
The text was updated successfully, but these errors were encountered:
Pear works without any config for me
Sorry, something went wrong.
@saadparwaiz1 is correct. The feature is noted in https://github.com/hrsh7th/nvim-cmp#features
Ah, thanks, missed that! Does it mean I still need both pieces of configs?
I think on_enter setting can,be removed.
No branches or pull requests
Hey @hrsh7th, hope you are doing well!
How should I go about mapping enter to work with cmp and pears? For compe I had:
Now, with cmp I also have that CR mapping:
:imap <CR>
returnsSo I assume cmp gets loaded after cmp and overrides the mapping. How to marry the two together?
Thanks!
The text was updated successfully, but these errors were encountered: