]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
lspOptions: diagLineHL
authorChristoffer Aasted <chr.aasted@gmail.com>
Tue, 14 Feb 2023 21:48:55 +0000 (22:48 +0100)
committerChristoffer Aasted <chr.aasted@gmail.com>
Tue, 14 Feb 2023 21:48:55 +0000 (22:48 +0100)
autoload/lsp/lsp.vim
doc/lsp.txt
plugin/lsp.vim

index b2e90ea5f13b2a384c6ee317b7e8170c4a74b21a..42ce8bdfbc9df080ee3d414742c67105dd5b4561 100644 (file)
@@ -31,6 +31,10 @@ var ftypeServerMap: dict<dict<any>> = {}
 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'},
index bc3d47bbdd9d9a12e6ec1ec2b7754c61a5abc4ac..a026ee14ae6c258f4b52cb13b9616909f00cf0a1 100644 (file)
@@ -277,6 +277,8 @@ keepFocusInReferences       Focus on the location list window after
 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 <CR>.
                        By default this is set to false.
index c983f56cf0bf8da2a2ee24b6076d3aa7fea8d71b..3f190b5ea56609d051ed7c79d949d8a211290bf3 100644 (file)
@@ -168,5 +168,4 @@ if has('gui_running')
           \ :LspHighlightClear<CR>
   endif
 endif
-
 # vim: shiftwidth=2 softtabstop=2