Feat: Dynamically flip diagnostics and lspinfo order when displayed above/below row
Thanks for the great plugin! Been looking for a combined diagnostics and hover UI since swapping to nvim.
After about a week of usage I've found myself being confused when hovering an item with diagnostics, whilst actually looking for the lsp info. When the ui opens above the line the lsp-info is just next to the target, which I'm used to from previous hovers, but when it opens bellow the line, the lsp info is at the bottom, possibly quite a few lines down since diagnostic is always >= 4 rows high.
I think flipping the sections dynamically would make the the hover more predictable/easy to read.
I assume this would have to be configurable by a setting for users who prefer the existing behavior.
关闭于 2024-11-25 6 条评论