roxma / nvim-completion-manager

:warning: PLEASE USE https://github.com/ncm2/ncm2 INSTEAD
MIT License
916 stars 49 forks source link

Quick question: Using tab to expand whatever is selected in popup menu #201

Closed qazip closed 6 years ago

qazip commented 6 years ago

Sorry if this is pretty obvious but I seem to be unable to do this. What I want is essentially to select the option I want in the popup (be it a simple word completion or snippet completion) and then use tab to expand the selection I made.

I use ultisnips for snippets. So, let's say I'm on a .cpp file and I've written "for123", "for321" and there's a "for" snippet. By typing "for", the popup should appear with all 3 options. I then use the arrow keys to select the option I want and press tab to expand it.

How would I go about accomplishing this? Sorry if this is explained elsewhere.

EDIT: I think I managed to do it. I'm just having a problem now, but for future reference, this issue helped me: https://github.com/roxma/nvim-completion-manager/issues/135

I'll close this. Sorry for the spam.