if has('patch-9.0.1157') && opt.lspOptions.showDiagWithVirtualText
if !hlexists('LspDiagVirtualText')
- hlset([{name: 'LspDiagVirtualText', linksto: 'LineNr'}])
+ hlset([{name: 'LspDiagVirtualText', linksto: opt.lspOptions.diagVirtualTextHL}])
endif
prop_type_add('LspDiagVirtualText', {highlight: 'LspDiagVirtualText', override: true})
endif
diagLineHL: 'DiffAdd',
# Show a diagnostic messages with virtual text
showDiagWithVirtualText: false,
+ # The highlight group used for a diagnostics virtual text
+ diagVirtualTextHL: 'LineNr',
# Don't print message when a configured language server is missing.
ignoreMissingServer: false,
# Use a floating menu to show the code action menu instead of asking for input
showDiagWithVirtualText |Boolean| option. Show diagnostic messages text from the language
server with virtual text. By default this is set to false.
Needs Vim version 9.0.1157 or later.
+diagVirtualTextHL |String| option.
+ The highlight group used for a diagnostics virtual text.
+ By default uses "LineNr".
showSignature |Boolean| option. In insert mode, automatically show
the current symbol signature in a popup.
By default this is set to true.