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
Disable Preview Window? #2015
Comments
if you don't like the preview window popping up then:
|
If the semantic engine for the language you're working can extract the documentation it will display it there. If you get only what you're already getting in the popup menu then it means that either you don't have documentation for the function you're completing or the semantic engine couldn't pick it up. In any case the preview window on completion is a built in feature of vim and you can turn it off by set completeopt-=preview We add the relevant option only if you have |
Hah. Issue ninja! |
I don't think there is a "native" way of doing it (so no option for that), but with some VimL I think is doable: autocmd WinEnter * if &previewwindow && line2byte( line( '$' ) + 1 ) <=2 | :pclose | endif I didn't test it, just wrote it :) |
For anyone else who ends up here, this option is amazing, and might be what you want: https://github.com/Valloric/YouCompleteMe#the-gycm_autoclose_preview_window_after_insertion-option |
The |
This reverts commit 76de82b. I updated YCM plugin and now as I <c-n> it opens a window (preview window?). ycm-core/YouCompleteMe#2015 (comment)
This reverts commit 76de82b. I updated YCM plugin and now as I <c-n> it opens a window (preview window?). ycm-core/YouCompleteMe/issues/2015#issuecomment-189917191
Is there any way to fix the height? |
These days, if you aren't a fan of the preview window (i'm not), i would recommend using the preview popup
Otherwise, all the help you need is in |
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
insidethe brackets) before filing your issue:
Frequently Asked Questions section.
about to report and couldn't find an answer to my problem. (Example Google
search.)
vim --version
.:YcmDebugInfo
.:YcmToggleLogs stderr
.version) I am using.
my issue.
that any help I receive is a selfless, heartfelt gift of their free time. I
know I am not entitled to anything and will be polite and courteous.
actually perform all of these steps.
Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.
Perhaps I'm missing the purpose of the preview window popping up on top ever time I get a completion option, but it seems to just show what already shows up in the completion dropdown. It's kind of annoying and makes me lose focus of the line I'm working on when it shifts down constantly. Is there a way to disable it completely? I've seen options for autoclosing it after completion, but I don't want it at all.
[If filing a bug report, please include a list of steps that describe how to
reproduce the bug you are experiencing. Also include test code if relevant.]
The text was updated successfully, but these errors were encountered: