goneovim icon indicating copy to clipboard operation
goneovim copied to clipboard

External Popup Menu doesn't apply on child popup message

Open Grzanka99 opened this issue 4 years ago • 6 comments

When i get popup from linters with "submessage" i get something like this: image All the time. It's realy annoying and make's hard to work with (in this case -> typescript). There is how it looks with terminal version on nvim: image I know I can disable external popup but i realy enjoy it fancy look :P

Grzanka99 avatar Feb 24 '21 19:02 Grzanka99

Hi :)

This is a known issue, and there is currently no good solution. :( The tooltip associated with the completion menu provided by the modern neovim plugin is displayed using a float window. On the other hand, the current specification of the ext_popupmenu API that goneovim uses to externalize popup menus does not provide information about these tooltips. This means that tooltips associated with completion menus are indistinguishable from general float windows, making it difficult to handle whether they are tooltips associated with completion or float windows with a completely different purpose.

However, it might be possible to implement a work-around, for example, if an external pop-up menu is displayed while in insert mode, so that the float window is not covered by the UI of the external pop-up menu, although it might be somewhat clunky. I'll try to make a fix based on this idea in the next few days.

akiyosi avatar Feb 25 '21 03:02 akiyosi

@Grzanka99 Hi, I've created a commit that implements the workaround. If you have time, try it out. https://github.com/akiyosi/goneovim/actions/runs/624055076

akiyosi avatar Mar 05 '21 12:03 akiyosi

I have made a few minor fixes in the latest revision. You can try the following if you like.

https://github.com/akiyosi/goneovim/actions/runs/638803935

2021-03-10 21 44 57

akiyosi avatar Mar 10 '21 12:03 akiyosi

Is this fix in the current 4.11 build, or do I have to build it myself?

JSchrtke avatar Apr 25 '21 14:04 JSchrtke

@JSchrtke Hi :) This fix is included in 0.4.11. If you have any problems, let me know!

akiyosi avatar Apr 26 '21 00:04 akiyosi

Heh, now my cursor is under the popup :P image I could not respond for latest question bcs I had some problems with building it. Anyway, this is how it looks in terminal: image I use goneovim-bin from AUR Same with ExtPopup = true

Grzanka99 avatar Apr 27 '21 13:04 Grzanka99