You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suggest this can be improved:
I looked around for settings and none seem like a permanent fix (except switching to preview window obviously). Yes you can set pumheight=20 which will limit it vertically, but not horizontally in a sensible way afaik. It is dictated by the item length for each row word, kind, info, (functionname, args, markdown doc)
One could make a function for how occupied the screen is by the popup from the cursor, to act on it in completion.
defColumnPct(in: number): numbervar onePct: float= ( &columns / 100.0 )
var retPct: number=float2nr( in / onePct )
return retPct
enddef
As an example, just to make a screenshot to compare without the function-args signature.
The best ideas I could come up with quick:
Append the function-args removed from screenshot above into the actual info popup d.info as a separate header in the top. (https://github.com/yegappan/lsp/blob/main/autoload/lsp/completion.vim#L281-L288)
I suggest a lsp-options for toggling this on/off by default. Some other lsp plugins have this. I would probably opt for this myself. Straight-forward way to quickly save a lot of rows for vertical screens.
Limit the func-name, func-args row in length, cut off by padding ".." to the right or both names and functions-args in length. It should be determined by both cursor pos, window size (columns) and the longest line-length in the info popup, which would ensure it never limits unnecessarily and always maximizes width.
Any other ideas?
The text was updated successfully, but these errors were encountered:
I suggest this can be improved:

I looked around for settings and none seem like a permanent fix (except switching to preview window obviously). Yes you can set
pumheight=20
which will limit it vertically, but not horizontally in a sensible way afaik. It is dictated by the item length for each rowword, kind, info
, (functionname, args, markdown doc)One could make a function for how occupied the screen is by the popup from the cursor, to act on it in completion.
https://github.com/yegappan/lsp/blob/main/autoload/lsp/completion.vim#L315
If columns occupied by screen is 70%+
As an example, just to make a screenshot to compare without the function-args signature.

The best ideas I could come up with quick:
Append the function-args removed from screenshot above into the actual info popup
d.info
as a separate header in the top. (https://github.com/yegappan/lsp/blob/main/autoload/lsp/completion.vim#L281-L288)I suggest a lsp-options for toggling this on/off by default. Some other lsp plugins have this. I would probably opt for this myself. Straight-forward way to quickly save a lot of rows for vertical screens.
Limit the func-name, func-args row in length, cut off by padding "
..
" to the right or both names and functions-args in length. It should be determined by both cursor pos, window size (columns) and the longest line-length in the info popup, which would ensure it never limits unnecessarily and always maximizes width.Any other ideas?
The text was updated successfully, but these errors were encountered: