Skip to content

Commit 7d59166

Browse files
g:lsp_diagnostics_virtual_text_align: List allowed values (#1445)
It is not immediately clear what are the possible values for this configuration parameter. And it is nice to be a bit more explicit about the meaning of each option. Co-authored-by: Prabir Shrestha <[email protected]>
1 parent 4460833 commit 7d59166

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/vim-lsp.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,19 @@ g:lsp_diagnostics_virtual_text_align *g:lsp_diagnostics_virtual_text_align*
745745
Determines the align of the diagnostics virtual text. Requires
746746
|g:lsp_diagnostics_virtual_text_enabled|.
747747

748+
Possible values are:
749+
750+
after after the end of the line
751+
right right aligned in the window (unless the text wraps to the next
752+
screen line)
753+
below in the next screen line
754+
above just above the line
755+
756+
Only one "right" property can fit in each line, if there are two or more
757+
these will go in a separate line (still right aligned).
758+
759+
This value is passed as the "text_align" property in a |prop_add()| call.
760+
748761
Example: >
749762
let g:lsp_diagnostics_virtual_text_align = "right"
750763

0 commit comments

Comments
 (0)