RaafatTurki / corn.nvim

LSP diagnostics at your corner
104 stars 7 forks source link

feature request: align floating window vertically when context window is visible #5

Closed bassamsdata closed 6 months ago

bassamsdata commented 7 months ago

thank you for this awesome plugin—it's a lifesaver for sorting out diagnostics.

quick request: any chance we could make the floating window align below (vertically) the treesitter-context plugin only when the context window is up? check out the pic for what i mean.

thanks a bunch! 😊

Screenshot 2023-12-04 at 2 24 56 PM
RaafatTurki commented 7 months ago

Hi! Nice catch, this feature requires this issues fixed on nvim-treesitter-context which allows the ability to get the height of the context window. I've commented on that issue and we'll see how it goes.

Also thanks for the kind word.

bassamsdata commented 6 months ago

Thank you for your interest in implementing this. However, it's unlikely to be fixed as treesitter-context plugin maintainers won't add an API for this feature. Closing this issue.

Side note: I really appreciate the last feature you added to not cover errors on top of the buffer. Thank you again.