-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Description
Currently, popup_create() has an option called fixed, which defaults to FALSE.
It basically does what it says on the tin - if there's not enough room, shifts the popup to the left.
However, it stops working if wrap is on in the popup window.
That's somewhat hostile to plugin maintainers, because occasionally fully shifted popups still have lines that don't fit on the screen (python signatures can get rather nasty).
I have recently implemented in YouCompleteMe a combination of soft-wrapping and popup shifting, all along avoiding vim's ability to shift the popup for me.
The way I have implemented it is such that YouCompleteMe will first shift the popup to the left and then, if there's still not enough space, turn wrap on.
It would be nice if vim could do this on its own.
The YouCompleteMe pull request, for reference: ycm-core/YouCompleteMe#4252
I wouldn't mind working on this feature, if there are no objections.