folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.11k stars 173 forks source link

Float window size as negative value, float window sizes and positions as either numver or function #505

Open Rumi152 opened 3 weeks ago

Rumi152 commented 3 weeks ago

Floating window opts can have position at negative values to be relative to right side of window, I have added so they can have negative size as being n smaller than parent. Second change is I have added possibility for size and position of floating windows to be fun(parent_size: {width: number, height: number}):number. It allows for more customization with runtime calculations