ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
2.02k stars 57 forks source link

Signature window minimal width #197

Closed reaz1995 closed 2 years ago

reaz1995 commented 2 years ago

Hello, Is there any possible way to set up the minimal width for signature window? Checked docs and couldn't find anything ... the current window appear too small: Screenshot from 2022-07-10 17-50-24

i would like to set it up this way: Screenshot from 2022-07-10 17-56-09

some more questions:

Thanks for help.

ray-x commented 2 years ago

A question. The floating window size is calculated based on the current window size. Why would the first screen shoot so small?

reaz1995 commented 2 years ago

I guess its calculated according to the context, its small because the description have only 2 more letters (which doesn't render at this pic because this plugin "chentoast/marks.nvim" applied mark and made me some problems before figured it out). Anyway would be great to get option for minimal width or modifier for dynamic calc. Great plugin, its very usefull. 👍🏻

ray-x commented 2 years ago

I think only if your current window is really small, it should not be cut off.

image image
reaz1995 commented 2 years ago

Indeed it shouldn't be cut off, the bug came from marks "chentoast/marks.nvim". Anyway it would be great to get option for minimal width. Thanks

@ `nvim-cmp" https://github.com/hrsh7th/nvim-cmp#nvim-cmp have the feature to scroll up/down docs which shows in float window, maybe it will be helpfull

ray-x commented 2 years ago

You do not need scroll/up/down binding, once you move to signature floating with move_cursor_key you can page up/down