diagnostic-nvim icon indicating copy to clipboard operation
diagnostic-nvim copied to clipboard

Show diagnostics for the line under the cursor.

Open vext01 opened this issue 4 years ago • 3 comments

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

vext01 avatar Nov 05 '20 14:11 vext01

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.

bew avatar Nov 05 '20 18:11 bew

That'd be good, yeah!

On Thu, 5 Nov 2020, 18:03 Benoit de Chezelles, [email protected] 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 avatar Nov 05 '20 21:11 vext01

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

vext01 avatar Nov 06 '20 11:11 vext01