nvim-lua / diagnostic-nvim

A wrapper for neovim built in LSP diagnosis config
Apache License 2.0
219 stars 15 forks source link

Show diagnostics for the line under the cursor. #71

Open vext01 opened 3 years ago

vext01 commented 3 years ago

Is there a way to show the diagnostic for the line under the cursor without using a "jump to next" or "jump to previous"?

bew commented 3 years ago

You can actually create your own command for this. This is what you could do:

command! CurrentLineDiagnostic lua require'jumpLoc'.openLineDiagnostics()

But it would be better to have it builtin in the plugin I guess, since the lua call is not really documented afaik.

vext01 commented 3 years ago

That'd be good, yeah!

On Thu, 5 Nov 2020, 18:03 Benoit de Chezelles, notifications@github.com wrote:

You can actually create your own command for this. This is what you could do:

command! CurrentLineDiagnostic lua require'jumpLoc'.openLineDiagnostics()

But it would be better to have it builtin in the plugin I guess, since the lua call is not really documented afaik.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nvim-lua/diagnostic-nvim/issues/71#issuecomment-722544360, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAETWG35S7YZLJ4EQH4S3YLSOLSIZANCNFSM4TLOBZPA .

vext01 commented 3 years ago

It might be good if the current line diagnostic was automatically displayed also.