diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-03-30 14:49:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 14:49:58 +0100 |
commit | 226a6c3eaef2a7220841d3d5e69e1baf543b3d6f (patch) | |
tree | 394cafe6a57a124635941517b2acd94d9d850efa /src | |
parent | 8fa7d833cf3a6c906c91c5acf9187b4544cf94be (diff) | |
download | rneovim-226a6c3eaef2a7220841d3d5e69e1baf543b3d6f.tar.gz rneovim-226a6c3eaef2a7220841d3d5e69e1baf543b3d6f.tar.bz2 rneovim-226a6c3eaef2a7220841d3d5e69e1baf543b3d6f.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/highlight_group.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c index 38af2a708a..057447c9f4 100644 --- a/src/nvim/highlight_group.c +++ b/src/nvim/highlight_group.c @@ -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", |