aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/protocol.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-03-30 14:49:58 +0100
committerGitHub <noreply@github.com>2023-03-30 14:49:58 +0100
commit226a6c3eaef2a7220841d3d5e69e1baf543b3d6f (patch)
tree394cafe6a57a124635941517b2acd94d9d850efa /runtime/lua/vim/lsp/protocol.lua
parent8fa7d833cf3a6c906c91c5acf9187b4544cf94be (diff)
downloadrneovim-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 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r--runtime/lua/vim/lsp/protocol.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua
index 1686e22c48..f4489ad17d 100644
--- a/runtime/lua/vim/lsp/protocol.lua
+++ b/runtime/lua/vim/lsp/protocol.lua
@@ -21,6 +21,7 @@ end
--]=]
local constants = {
+ --- @enum lsp.DiagnosticSeverity
DiagnosticSeverity = {
-- Reports an error.
Error = 1,
@@ -32,6 +33,7 @@ local constants = {
Hint = 4,
},
+ --- @enum lsp.DiagnosticTag
DiagnosticTag = {
-- Unused or unnecessary code
Unnecessary = 1,