Youcompleteme: GetDoc in a Popup or Floating window

Created on 14 Aug 2019  路  12Comments  路  Source: ycm-core/YouCompleteMe

Is there an appetite for having the Doc appear in a Popup/Floating window?

PR Welcome enhancement

Most helpful comment

For people seeking to disable the annoying documentation popup every time you rest your cursor for more than half a second. Check :help youcompleteme and search for auto_hover, eg:

let g:ycm_auto_hover=''

All 12 comments

I don't think that's something we're considering exactly. I suppose we could if 'previewpopup' is set, but tbh I don't think it's _that_ much of a benefit, vs say implementing hover.

That's reasonable, as long it's not a "regular" buffer. Sorry, is hover implemented or in the works.

Sorry, is hover implemented or in the works.

no

if has('patch-8.1.1902')
    set completeopt+=popup
    set completepopup=height:10,width:60,highlight:Pmenu,border:off
endif

@blayz3r you can try this config

if has('patch-8.1.1902')
    set completeopt+=popup
    set completepopup=height:10,width:60,highlight:Pmenu,border:off
endif

@blayz3r you can try this config

I was talking more viewing the help doc in a preview window instead of a split

photo_2019-08-24 22 46 25

And I am talking about this.

photo_2019-08-24 22 46 25

And I am talking about this.

That only shows up on completion, that's not what I was after. I was referring to the split created when you press "K" over a word i.e. GetDoc in the title

Sorry, is hover implemented or in the works.

no

Update: maybe https://github.com/ycm-core/YouCompleteMe/pull/3564

Oh great that looks promising !!

photo_2019-08-24 22 46 25

And I am talking about this.

Hi, I've set

if has('patch-8.1.1902')
    set completeopt+=popup
    set completepopup=height:10,width:60,highlight:Pmenu,border:off
endif

Only get this

image


If I input abo then press TAB I got this:

image

Neither is same with you.

As far as YCM is concerned your second screenshot is what you're looking for. I see the same thing you do.
The abort() -> NoReturn comes from jedi parsing https://github.com/python/typeshed/blob/master/stdlib/3/os/__init__.pyi#L574

The quoted screenshot seems to display help(os.abort), which I thought was available through jedi's help(), but apparently not. Unless I'm awfully mistaken, right now jedi can't give you that screenshot.

For people seeking to disable the annoying documentation popup every time you rest your cursor for more than half a second. Check :help youcompleteme and search for auto_hover, eg:

let g:ycm_auto_hover=''
Was this page helpful?
0 / 5 - 0 ratings