helix icon indicating copy to clipboard operation
helix copied to clipboard

Show diagnostics when anywhere on its line

Open diktomat opened this issue 3 years ago • 5 comments

Currently Helix only shows LSP diagnostics when the cursor is on the specific characters the diagnostic is for. Sometimes this can be hard to find, sometimes the characters are not even underlined, like in my demo below with a one character diagnostic. Helix should (maybe optionally) show diagnostics if the cursor is anywhere on the line, not just on the specific characters.

asciicast

diktomat avatar Jul 15 '22 07:07 diktomat

For finding the exact position of the error you can use ]d and [d.

sudormrfbin avatar Jul 15 '22 09:07 sudormrfbin

We used to default to anywhere on the line but what if there's multiple diagnostics on a single line?

archseer avatar Jul 15 '22 10:07 archseer

We used to default to anywhere on the line but what if there's multiple diagnostics on a single line?

This can already happen, like Rust has error and hint often for the same part of the same line. They are just shown one message per line: image

diktomat avatar Jul 15 '22 11:07 diktomat

That's what I'm missing in lsp-ui of Emacs.

Yevgnen avatar Sep 04 '22 11:09 Yevgnen

#6059

erasin avatar Feb 22 '23 14:02 erasin