-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[enhancement] add support to option floating_window_off_y
as a function
#248
Comments
Thanks for your suggestions. |
@yao-weijie |
I am wondering how you want to pass in the opts? setup{
...
floating_opts=function() return {} end,
...
} So in offset_x you can do this: offset_x(floating_opts()) |
setup{ the opts contains the signature help window size. Actually I'm not sure of the process of generating the help window. If help window size is calculated before offset_y, then you can pass the size to the offset_y function. |
I pushed another change to allow floating_opts been passed to off_x/y. Would you take a look? |
In current version, it's difficult to avoid conflict between
lsp_signature.nvim
andnvim-cmp
, especially when the cursor at the top or bottom of window, I found a solution to solve this problem.modification
modify
lsp_signature.nvim/lua/init.lua
final effect
the window is high enough, and it's better not to split horizontal :)
The text was updated successfully, but these errors were encountered: