diff options
author | TJ DeVries <devries.timothyj@gmail.com> | 2021-01-12 12:58:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-12 12:58:50 -0500 |
commit | 9f3b2a757b866cf117efecf3ca1a2233e77217d8 (patch) | |
tree | 63ea815c6b04014a5518c5aa231ab8331e5cf755 /runtime/doc | |
parent | e0a4399adc4472b9b02a26c7f93b056c4725a6b9 (diff) | |
download | rneovim-9f3b2a757b866cf117efecf3ca1a2233e77217d8.tar.gz rneovim-9f3b2a757b866cf117efecf3ca1a2233e77217d8.tar.bz2 rneovim-9f3b2a757b866cf117efecf3ca1a2233e77217d8.zip |
lsp: Add severity_limit for other diagnostics features (#13528)
* lsp: Add severity_limit for other diagnostics
* docs and tests
* fix: lint
* Add to other types
* fix: lint
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 88e8275b44..c00b2ab4f8 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1340,10 +1340,14 @@ set_underline({diagnostics}, {bufnr}, {client_id}, {diagnostic_ns}, {opts}) Parameters: ~ {diagnostics} Diagnostic [] - {bufnr} number The buffer number - {client_id} number the client id - {diagnostic_ns} number|nil - {opts} table Currently unused. + {bufnr} number: The buffer number + {client_id} number: The client id + {diagnostic_ns} number|nil: The namespace + {opts} table: Configuration table: + • severity_limit (DiagnosticSeverity): + • Limit severity of diagnostics found. + E.g. "Warning" means { "Error", + "Warning" } will be valid. *vim.lsp.diagnostic.set_virtual_text()* set_virtual_text({diagnostics}, {bufnr}, {client_id}, {diagnostic_ns}, {opts}) @@ -1370,6 +1374,10 @@ set_virtual_text({diagnostics}, {bufnr}, {client_id}, {diagnostic_ns}, {opts}) before virtual text on line • spacing (number): Number of spaces to insert before virtual text + • severity_limit (DiagnosticSeverity): + • Limit severity of diagnostics found. + E.g. "Warning" means { "Error", + "Warning" } will be valid. *vim.lsp.diagnostic.show_line_diagnostics()* show_line_diagnostics({opts}, {bufnr}, {line_nr}, {client_id}) |