prabirshrestha / vim-lsp

async language server protocol plugin for vim and neovim
MIT License
3.12k stars 305 forks source link

Diagnostics display as line until hovered? #1554

Closed maclong9 closed 2 months ago

maclong9 commented 5 months ago

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 commented 5 months ago

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