completion-nvim
completion-nvim copied to clipboard
Hover help hidden behind popup menu
Is your feature request related to a problem? Please describe.
With rust-analyzer, some entries in the completion list can be very long, i.e. wide. This results in the hover help floating window being partially hidden behind the popup menu:

Describe the solution you'd like
The hover help floating window could display above the popup menu, and/or there could be an option to either limit the width of the popup menu, truncating the third column, or to hide the third column entirely.
Describe alternatives you've considered
There's the pumwidth option, but unfortunately, that sets a minimal width for the popup menu, whereas I'd like to be able to set a maximum width.
A temporary solution is setting g:completion_menu_length which sets a maximum length of the menu and truncates the rest of it, but I agree, this issue should still be fixed.
g:completion_menu_length is great, thanks for that! I much prefer the completion menu to be small instead of covering up most of the buffer, so in combination with g:completion_abbr_length and pumheight, I can achieve a much more pleasing result :) Maybe worth adding those two options to the docs?
Nevertheless, if the window is narrow enough and the hover help wide enough that it overlaps with the popup menu, it's still hidden behind it. So that's probably still worth addressing, as you've said, even though limiting the width of the popup menu makes it much less likely to happen.