I'm using hrsh7th/nvim-cmp
and some related packages to achieve content completion in nvim
However, in some cases which happen enough times, it becomes very cumbersome to use. Not sure if there's a proper way of doing this or not:
Assume you just typed a word/keyword in your favorite language and you're ready to press ENTER
to start a new line. At this time, nvim
shows you a dropdown of your choices. I don't want any of those! I'm happy with what I typed.
How can I start my new line without selecting anything from the dropdown menu?
Currently, I have to do either of these two:
- press
ESC
to get rid of the menu. This works but removes me from the Editing mode. Then I have to presso
to open a new line and start typing again - press
ENTER
selecting one of the items in the context menu. Then pressESC
to exit editing mode. pressX
repeatedly to delete what was pasted. Then presso
to start a new line!
Here's how I did it:
So now the default item won't be selected by me pressing
Enter
. If I wanted the top item I'd be doing aTab
prior to pressingEnter
.