Youcompleteme: Is there a way fix the size of completion menu in vim?

Created on 20 Feb 2019  路  4Comments  路  Source: ycm-core/YouCompleteMe

Hi,

Is there a way to fix the size of the completion window to, for example, 10 items. Note that I would still like to get all completion items (e.g. more than 10) from ycmd completer (i.e. g:ycm_max_num_candidates wouldn't work) so that I can scroll the window to browse more items.

Thanks!

Most helpful comment

To anyone who has found this issue through google, the answer to OP's question is to insert
set pumheight=10
in your .vimrc.
This is indeed a general Vim option, described in
:help ins-completion-menu

All 4 comments

There is no control over that in YCM.

If any such feature existed it would be a vim setting. Try reading :help ins-completion to see if there are options that work for you.

Already answered in https://github.com/Valloric/YouCompleteMe/issues/166, https://github.com/Valloric/YouCompleteMe/issues/173, and https://github.com/Valloric/YouCompleteMe/issues/1978. From CONTRIBUTING.md:

Further, search the issue tracker for similar issues before creating a new one. There's no point in duplication; if an existing issue addresses your problem, please comment there instead of creating a duplicate.

and the issue template:

I have searched YCM's issue tracker to find issues similar to the one I'm about to report and couldn't find an answer to my problem. (Example Google search.)

Sorry about the duplicate! I should've spent more time searching the issue tracker.

To anyone who has found this issue through google, the answer to OP's question is to insert
set pumheight=10
in your .vimrc.
This is indeed a general Vim option, described in
:help ins-completion-menu

Was this page helpful?
0 / 5 - 0 ratings