Skip to content

Feature request: line-wise diagnostics echo (most severe on line) #1642

Description

@amusingaxl

Hi! Would you consider supporting line-wise diagnostics echo?

Current behavior: g:lsp_diagnostics_echo_cursor only shows diagnostics when the cursor is within a diagnostic range, so if a diagnostic covers only part of a line, it doesn't show when the cursor is elsewhere on that line.

Requested behavior: add a config option to echo diagnostics for the current line (even when the cursor isn't within a diagnostic range). If multiple diagnostics exist on the line, default to displaying the most severe one (error > warning > info > hint). Optionally, allow displaying all diagnostics (joined) via config.

This would make it easier to see what a sign indicates without needing to hit the exact token.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions