roxma / nvim-completion-manager

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

Limit number of candidates? #151

Closed alok closed 6 years ago

alok commented 6 years ago

In some files, completion menus take up the whole page, which I never want. Is there a way to limit the number of candidates shown?

Basically, g:deoplete#max_list for NCM.

roxma commented 6 years ago

Why not setting the pumheight option?

liuchengxu commented 6 years ago

Yes, @Alok , you can simply set pumheight=20 (change 20 to whatever you like), then the popup menu will not occupy the full screen. See :h 'pumheight'.