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 /runtime/doc | |
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 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 3 | ||||
-rw-r--r-- | runtime/doc/news.txt | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 0164b34efb..f5695669ae 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1113,7 +1113,8 @@ code_action({options}) *vim.lsp.buf.code_action()* • {options} (table|nil) Optional table which holds the following optional fields: • context: (table|nil) Corresponds to `CodeActionContext` of the LSP specification: - • diagnostics (table|nil): LSP`Diagnostic[]` . Inferred from the current position if not provided. + • diagnostics (table|nil): LSP `Diagnostic[]`. Inferred + from the current position if not provided. • only (table|nil): List of LSP `CodeActionKind`s used to filter the code actions. Most language servers support values like `refactor` or `quickfix`. diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 890a033268..401719b432 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -226,6 +226,9 @@ The following new APIs or features were added. • Added |nvim_get_hl()| for getting highlight group definitions in a format compatible with |nvim_set_hl()|. +• |vim.diagnostic| now supports LSP DiagnosticsTag. + See: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#diagnosticTag + ============================================================================== CHANGED FEATURES *news-changes* |