autoload/lsp/lsp.vim | 4 ++++ doc/lsp.txt | 2 ++ plugin/lsp.vim | 1 - diff --git a/autoload/lsp/lsp.vim b/autoload/lsp/lsp.vim index b2e90ea5f13b2a384c6ee317b7e8170c4a74b21a..42ce8bdfbc9df080ee3d414742c67105dd5b4561 100644 --- a/autoload/lsp/lsp.vim +++ b/autoload/lsp/lsp.vim @@ -31,6 +31,10 @@ var lspInitializedOnce = false def LspInitOnce() + var lineHL: string = opt.lspOptions.diagLineHL + if lineHL->empty() + lineHL = 'MatchParen' + endif # Signs used for LSP diagnostics sign_define([{name: 'LspDiagError', text: 'E>', texthl: 'ErrorMsg', linehl: 'MatchParen'}, diff --git a/doc/lsp.txt b/doc/lsp.txt index bc3d47bbdd9d9a12e6ec1ec2b7754c61a5abc4ac..a026ee14ae6c258f4b52cb13b9616909f00cf0a1 100644 --- a/doc/lsp.txt +++ b/doc/lsp.txt @@ -277,6 +277,8 @@ LspShowReferences. By default this is set to false. noDiagHoverOnLine Suppress diagnostic hover from appearing when the mouse is over the line instead of the signature. By default this is set to true. +diagLineHL Highlight used for diagnostic line. + Use `NONE` to disable. noNewlineInCompletion Suppress adding a new line on completion selection with . By default this is set to false. diff --git a/plugin/lsp.vim b/plugin/lsp.vim index c983f56cf0bf8da2a2ee24b6076d3aa7fea8d71b..3f190b5ea56609d051ed7c79d949d8a211290bf3 100644 --- a/plugin/lsp.vim +++ b/plugin/lsp.vim @@ -168,5 +168,4 @@ anoremenu PopUp.L&sp.Highlight\ Clear \ :LspHighlightClear endif endif - # vim: shiftwidth=2 softtabstop=2