Skip to content

Displaying virtual text at the end of the line, rather than below the error #1582

Answered by ernstki
ernstki asked this question in Q&A
Discussion options

You must be logged in to vote

The solution is—you guessed it—in the help. The default alignment for virtual text is below. From the docs as of this writing:

g:lsp_diagnostics_virtual_text_align    g:lsp_diagnostics_virtual_text_align
    Type: String
    Default: "below"

    Determines the align of the diagnostics virtual text. Requires
    g:lsp_diagnostics_virtual_text_enabled.

    Possible values are:

       after   after the end of the line
       right   right aligned in the window (unless the text wraps to the next
               screen line)
       below   in the next screen line
       above   just above the line

    Only one "right" property can fit in each line, if there are two or more
    these will go…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ernstki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant