mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user