-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intrusive Diagnostics #1462
Comments
Would #1445 fix it for you? |
No it wouldn't, it's orthogonal :P |
There's two features that would be nice:
|
I have a similar need. Purescript errors can be VERY long when there's a row type error. They get truncated and right aligned with the current diagnstics, making them almost useless. Ideally I'd like to be able to:
|
+1 for the temporary buffer idea |
can you do it like vscode does it with a problems pane |
Having the same issue where the diagnostic message covers the code that I'm trying to edit. Is there any workaround till this is fixed? P.S. Stopped using VS Code a few months ago and tried a few flavours of NeoVim distros and then Helix. I have to say that I'm loving the Helix experience. |
In my opinion, the way neovim and lspsaga.nvim do it is quite nice:
In my opinion, the inline diagnostics are still quite clean, but also noticeable - more importantly, there is a clear separation between code and diagnostic, while not covering up any code. When the full diagnostic text is necessary, (i.e. when jumping through diagnostics), the full text is displayed in a pop up clearly separated from the text. |
+1 for simply drawing over the diagnostics, but only if a cursor is on the same line as the diagnostic. |
How about displaying error/warning messages in the status bar when the cursor is on top of the issue? It's keeps the errors out of the way but are there for when you need them. I had it setup like this previously while using ALE in Neovim and it worked well. Currently dealing with this sort of thing half way through typing: |
is this feature already in the works? as i understand, virtual text is already supported through #5420 anyway, i'm just want to get rid off those awful lsp messages haha! |
Until #6059 lands, it seems to me the quick fix is to simply render the diagnostic messages at the bottom of the pane instead of the top. You can always shift up the view center ( |
Also coming here to say that this makes editing in small windows (or many splits) really difficult. Half the time I can't see the code because the LSP errors hide what I'm editing. In nvim the errors disappear while you're in insert mode (IME at least, I didn't used to think about it because they were never intrusive in neovim), which is one option, but another is just to change where they are displayed (I cannot find a setting for this in the docs). This is the main thing marring the (otherwise great) helix experience for me. |
workaround: disable diagnostics feature ~/.config/helix/languages.toml [[language]]
name = "c"
language-servers = [{name = "clangd", except-features=["diagnostics"]}] |
How are you rendering the diagnostics at the bottom instead of the top? I can't find a reference to changing placement. |
Diagnostics appear on top of the code.
Diagnostics are always drawn from the top-right corner, with a max witdth of 100 chars and word wrapping.
I'm not sure what the best solution to this problem is, here are a few ideas:
show / hide diagnostics
command(see this c++ code where STL template diagnostics are particularly verbose)
The text was updated successfully, but these errors were encountered: