feat(diagnostic): add support for tags

The LSP spec supports two tags that can be added to diagnostics:
unnecessary and deprecated. Extend vim.diagnostic to be able to handle
these.
This commit is contained in:
Lewis Russell
2023-03-30 14:49:58 +01:00
committed by GitHub
parent 8fa7d833cf
commit 226a6c3eae
9 changed files with 83 additions and 16 deletions

View File

@@ -218,6 +218,8 @@ static const char *highlight_init_both[] = {
"default link DiagnosticSignInfo DiagnosticInfo",
"default link DiagnosticSignHint DiagnosticHint",
"default link DiagnosticSignOk DiagnosticOk",
"default DiagnosticDeprecated cterm=strikethrough gui=strikethrough guisp=Red",
"default link DiagnosticUnnecessary Comment",
// Text
"default link @text.literal Comment",