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

Pressing enter without anything selected should make popup disapear #77

Closed
ptarjan opened this issue Aug 7, 2018 · 1 comment
Closed

Comments

@ptarjan
Copy link

ptarjan commented Aug 7, 2018

When I type

class A

a popup helpfully appears offering me completions for A. If I just want to make a new class without choosing any selections, I have to press Esc which also takes me out of insert mode. In other popups that I'm used it by pressing <Enter> after the A the popup goes away and I am left with just the A I typed. Can I configure you do to that? I didn't see anything obvious in the docs.

@ptarjan
Copy link
Author

ptarjan commented Aug 8, 2018

I found the problem. It was with the suggested config. Removing inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<cr>" made it work as I expected.

@ptarjan ptarjan closed this as completed Aug 8, 2018
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