Closed aimuzov closed 1 month ago
@b1nhack, can you check it for yourself?
I also have an issue with the window separator. When the preview window type is set to 'main' and a winbar is present, the size calculation for the preview window becomes problematic, causing it to overlap the window separator. When the type is 'main,' the preview maybe implemented as a fixed-size floating window, but the calculation for this window ignores the winbar, leading to the issue.
There's another issue: when the type is set to 'main', the floating window does not override the default winblend setting. The desired effect is for the preview window to be completely opaque, making it look like it is previewing in the original window.
ty :)
@b1nhack just also changed the default winblend
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.0
Operating system/version
MacOS 14.5
Describe the bug
There is an bug related to the winbar when calculating the window height. The window must be one line less in height, otherwise it overlaps with the win separator.
https://github.com/folke/trouble.nvim/assets/3313023/1b43e381-047a-4d0a-a58b-74ccaed31599
If I change the return value of the parent_size function then the problem goes away:
Fix solves this:
https://github.com/folke/trouble.nvim/assets/3313023/9f434873-148f-45ed-99bb-9cdde8ffecd6
Please tell me how I can find out the correct height required for the preview window?
Steps To Reproduce
Expected Behavior
The window divider should not be overlapped by the preview window.
Repro