feature: Allow max_size/max_height to support Nui parameters
hb0nes opened this issue · comments
Did you check the docs?
- I have read all the noice.nvim docs
Is your feature request related to a problem? Please describe.
The Hover/Signature help is blocking view of my current cursor/what I'm typing, if the docs are too long for my terminal pane.
Describe the solution you'd like
noice.nvim/lua/noice/util/nui.lua
Line 199 in bf67d70
In the code here, it seems we are allowed to specify a max_height.
In the Nui docs, I can see it allows a percentage and float:
https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/popup#size
But not through Noice. When I input 0.8 the docs only show one line when viewing Hover/Signature.
Percentage is a string, which is not allowed.
I don't want to hardcode max_height to something like '10' because if I enlarge my pane, I have a lot more room.
I would like to use Nui's relative capabilities here.
Describe alternatives you've considered
.