Skip to content
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

Diagnostics display as line until hovered? #1554

Open
maclong9 opened this issue May 3, 2024 · 1 comment
Open

Diagnostics display as line until hovered? #1554

maclong9 opened this issue May 3, 2024 · 1 comment

Comments

@maclong9
Copy link

maclong9 commented May 3, 2024

I've been using vim-lsp, it's great for the most part. The only thing I'd like to be able to do is change the default view of errors and warnings to be hidden except for a red or yellow line under the affected text that I can expand using :LspHover or something. Is this a possibility at all?

The docs only mention turning off diagnostics completely.

@curedent
Copy link

curedent commented May 9, 2024

Hi,

This is more a workaround than a fix, but you might try it.

I use a mix of ALE and vim-lsp right now. Most of the time, I only use ALE to get my information while coding.

I turn on the vim-lsp diagnostics using I and turn off with i when I need more details.

Check the examples here:

Error without the vim-lsp diagnostics.
err

Error also displayed, "on cursor over" at the bottom.
err-bottom

Error with the vim-lsp diagnostics on, for more details.
err-diag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants