daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
717 stars 57 forks source link

[Feature] Tooltip support #113

Open hasufell opened 6 years ago

hasufell commented 6 years ago

I'm not really sure what is involved in that feature. When using diagnostics via e.g. ALE, I get tooltips in gvim such as:

peek 2018-06-15 20-20

neovim-gtk currently doesn't seem to do that:

peek 2018-06-15 20-29

daa84 commented 6 years ago

I think this feature is disabled in neovim, but not sure. Just don't know where to get this tooltip info.

Anrock commented 6 years ago

Afaik it's called balloons and it's removed in neovim indeed. https://github.com/neovim/neovim/issues/2544

hasufell commented 6 years ago

Afaik it's called balloons and it's removed in neovim indeed.

Then I wonder how this was implemented in gonvim:

gonvim

Anrock commented 6 years ago

@hasufell they probably just reimplemented it on top of nvim somehow.

daa84 commented 6 years ago

hm, yes it implemented using nvim api, https://github.com/dzhou121/gonvim/blob/c264bb83afbfe10c2d4991037142c169ce6519c3/editor/locpopup.go#L135

Interesting, think it is possible to implement same way

hasufell commented 6 years ago

Interesting, think it is possible to implement same way

Right, that would be a shortcut, that will be useful short-term at least.

However, gvim seems to have a much more powerful approach there that even integrates with https://github.com/autozimu/LanguageClient-neovim showing type information on mouse-over:

https://i.imgur.com/C11BXgD.png

However, errors are the most important thing, probably.

TerminalWitchcraft commented 6 years ago

+1 for this feature. Tooltips are really helpful and it will be great if this is implemented.