sign_define([
{
name: 'LspDiagError',
- text: opt.lspOptions.diagSignOpts.error.text,
- texthl: opt.lspOptions.diagSignOpts.error.texthl,
+ text: opt.lspOptions.diagSignErrorText,
+ texthl: opt.lspOptions.diagSignErrorTexthl,
linehl: lineHL
},
{
name: 'LspDiagWarning',
- text: opt.lspOptions.diagSignOpts.warning.text,
- texthl: opt.lspOptions.diagSignOpts.warning.texthl,
+ text: opt.lspOptions.diagSignWarningText,
+ texthl: opt.lspOptions.diagSignWarningTexthl,
linehl: lineHL
},
{
name: 'LspDiagInfo',
- text: opt.lspOptions.diagSignOpts.info.text,
- texthl: opt.lspOptions.diagSignOpts.info.texthl,
+ text: opt.lspOptions.diagSignInfoText,
+ texthl: opt.lspOptions.diagSignInfoTexthl,
linehl: lineHL
},
{
name: 'LspDiagHint',
- text: opt.lspOptions.diagSignOpts.hint.text,
- texthl: opt.lspOptions.diagSignOpts.hint.texthl,
+ text: opt.lspOptions.diagSignHintText,
+ texthl: opt.lspOptions.diagSignHintTexthl,
linehl: lineHL
}
])
# list of completion items
completionMatcher: 'case',
# diagnostics signs options
- diagSignOpts: {
- error: {
- text: 'E>',
- texthl: 'ErrorMsg',
- },
- warning: {
- text: 'W>',
- texthl: 'Search',
- },
- info: {
- text: 'I>',
- texthl: 'Pmenu',
- },
- hint: {
- text: 'H>',
- texthl: 'Question',
- },
- },
+ diagSignErrorText: 'E>',
+ diagSignErrorTexthl: 'ErrorMsg',
+ diagSignWarningText: 'W>',
+ diagSignWarningTexthl: 'Search',
+ diagSignInfoText: 'I>',
+ diagSignInfoTexthl: 'Pmenu',
+ diagSignHintText: 'H>',
+ diagSignHintTexthl: 'Question',
}
# set the LSP plugin options from the user provided option values
command to display the code action for the current
line, use a popup menu instead of echoing.
By default this is set to false.
-diagSignOpts |dict<any>| option. Options that allow you to change diagnostic
- sings text and highlight
- default settings
- diagSignOpts: {
- error: {
- text: 'E>',
- texthl: 'ErrorMsg',
- },
- warning: {
- text: 'W>',
- texthl: 'Search',
- },
- info: {
- text: 'I>',
- texthl: 'Pmenu',
- },
- hint: {
- text: 'H>',
- texthl: 'Question',
- },
- },
+diagSignErrorText |String| option. Change diag sign text for errors
+ By default 'E>'
+diagSignErrorTexthl |String| option. Change diag sign highlight for errors
+ By default 'ErrorMsg',
+diagSignWarningText |String| option. Change diag sign text for warnings
+ By default 'W>',
+diagSignWarningTexthl |String| option. Change diag sign highlight for warnings
+ By default 'Search',
+diagSignInfoText |String| option. Change diag sign text for info
+ By default 'I>',
+diagSignInfoTexthl |String| option. Change diag sign text highlight info
+ By default 'Pmenu',
+diagSignHintText |String| option. Change diag sign text for hints
+ By default 'H>',
+diagSignHintTexthl |String| option. Change diag sign highlight for hints
+ By default 'Question',
For example, to disable the automatic placement of signs for the LSP