How to disable some features in YCM

409 views
Skip to first unread message

Jens Troeger

unread,
Sep 21, 2020, 3:14:00 AM9/21/20
to ycm-users
Hi,

I’ve been using YCM for a long time, and really enjoyed it. But I hadn’t updated it for a while and I did just that last weekend. Much to my dismay.

YCM has become an annoyance and hindrance. Everywhere I move the cursor I have random overlays telling me about strings and tuples and all sorts of builtin types (Python, Javascript) I don’t want to see. I want to read code, and now I can’t. 

type-overlay.jpg

I want to type a function name and see a discreet suggestion of function names like so

suggestions.jpg

but I don’t want an oversized parameter definitions that hide code.

fun-overlay.jpg

How can I disable everything except for the suggestions?

Cheers,
Jens

Ben Jackson

unread,
Sep 22, 2020, 2:46:44 AM9/22/20
to ycm-users
https://github.com/ycm-core/YouCompleteMe#the-gycm_auto_hover-option - disable hover

You can also disable signature help with an undocumented option - g:ycm_disable_signature_help - set to 1

I’m sorry that our work is an annoying hinderance to you. For many users these features provide useful benefits and our decision to enable them by default is based on user feedback and testing. 

Jens Troeger

unread,
Sep 23, 2020, 6:34:24 PM9/23/20
to ycm-users
Hi,

Thanks for that, I’ll try to disable these features and see if working with YCM is getting more usable again.

Just to illustrate my point, here are a few examples. I move the cursor over the super keyword in Python, and instead of being able to read code I get this blob obstructing everything:

py-super.jpg

I’m quite aware of how super works, and I don’t need these popups everywhere I move the cursor. Same here, but this is actually wrong because the cursor is over an integer literal and not the int() function

py-number.jpg

Or like here, cursor is over an integer literal and the blob for tuples pops open:

py-wrong-number.jpg

None of that is useful at all. There a plenty of more instances where I move the cursor around and with every few characters my reading is obstructed by random blobs popping up all the time. And most of the time these blobs contribute little to nothing to my reading the code.

Then there’s nonsense like this:

js-unknown.jpg

Just don’t show this. Seriously, this one pops up a lot.  And here are a few examples popups that make me wonder what use they contribute:

js-bool.jpg
js-number.jpg
js-string.jpg

As I said, YCM is a helpful tool but this current flood and spamming with questionable “documentation” of code that’s clear anyway — it all makes YCM an annoying obstruction.

Cheers,
Jens

Ben Jackson

unread,
Sep 24, 2020, 11:15:15 AM9/24/20
to Jens Troeger, ycm-users
As I said, we enabled this after consulting the community: https://www.reddit.com/r/vim/comments/g9v832/ycm_documentation_hover_should_we_enable_it_by


Feel free to disable it per the documentation. We won’t be offended.

Jens Troeger

unread,
Sep 24, 2020, 7:06:10 PM9/24/20
to ycm-users
Did you notice the bugs I pointed out in my previous post, the wrong information that YCM pops open?

Ben Jackson

unread,
Sep 25, 2020, 3:54:47 AM9/25/20
to Jens Troeger, ycm-users
I didn’t, but if you thing there are bugs CONTRIBUTING.md contains instructions for raising issue reports on GitHub. 

From what I could tell you were being presented with what the docs say shall be there, ie what Jedi returns in the GetDoc request. 

On 25 Sep 2020, at 00:06, Jens Troeger <jens.t...@gmail.com> wrote:

Did you notice the bugs I pointed out in my previous post, the wrong information that YCM pops open?
--
You received this message because you are subscribed to a topic in the Google Groups "ycm-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ycm-users/n1mHwey5vGc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ycm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ycm-users/28431482-def8-4b78-8a78-f93c0bf32c15n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages