summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorfdschmidt93 <39233597+fdschmidt93@users.noreply.github.com>2021-06-10 17:13:34 +0200
committerGitHub <noreply@github.com>2021-06-10 17:13:34 +0200
commit1407ac3400971bcdbcf8b8026ff6957edfada1a3 (patch)
tree72148e3ada893f6112da738f392f33e0d7a4a8cb /doc
parentf9ce723f2ee0de17610d703e7a6553e875bafd2a (diff)
feat: improved configuration and sorting of lsp_{document,workspace}_diagnostics (#867)
Diffstat (limited to 'doc')
-rw-r--r--doc/telescope.txt40
1 files changed, 36 insertions, 4 deletions
diff --git a/doc/telescope.txt b/doc/telescope.txt
index b54580f..c053c5f 100644
--- a/doc/telescope.txt
+++ b/doc/telescope.txt
@@ -955,6 +955,9 @@ builtin.lsp_dynamic_workspace_symbols({opts})*builtin.lsp_dynamic_workspace_symb
builtin.lsp_document_diagnostics({opts}) *builtin.lsp_document_diagnostics()*
Lists LSP diagnostics for the current buffer
+ - Fields:
+ - `All severity flags can be passed as `string` or `number` as per
+ `:vim.lsp.protocol.DiagnosticSeverity:`
- Default keymaps:
- `<C-l>`: show autocompletion menu to prefilter your query with the
diagnostic you want to see (i.e. `:warning:`)
@@ -964,13 +967,29 @@ builtin.lsp_document_diagnostics({opts}) *builtin.lsp_document_diagnostics()*
{opts} (table) options to pass to the picker
Fields: ~
- {hide_filename} (boolean) if true, hides the name of the file in the
- current picker (default is false)
+ {hide_filename} (boolean) if true, hides the name of the file
+ in the current picker (default is
+ false)
+ {severity} (string|number) filter diagnostics by severity name
+ (string) or id (number)
+ {severity_limit} (string|number) filter for diagnostics equal or more
+ severe wrt severity name (string) or
+ id (number)
+ {severity_bound} (string|number) filter for diagnostics equal or less
+ severe wrt severity name (string) or
+ id (number)
+ {no_sign} (bool) hide LspDiagnosticSigns from Results
+ (default is false)
+ {line_width} (number) set length of diagnostic entry text
+ in Results
builtin.lsp_workspace_diagnostics({opts})*builtin.lsp_workspace_diagnostics()*
Lists LSP diagnostics for the current workspace if supported, otherwise
searches in all open buffers
+ - Fields:
+ - `All severity flags can be passed as `string` or `number` as per
+ `:vim.lsp.protocol.DiagnosticSeverity:`
- Default keymaps:
- `<C-l>`: show autocompletion menu to prefilter your query with the
diagnostic you want to see (i.e. `:warning:`)
@@ -980,8 +999,21 @@ builtin.lsp_workspace_diagnostics({opts})*builtin.lsp_workspace_diagnostics()*
{opts} (table) options to pass to the picker
Fields: ~
- {hide_filename} (boolean) if true, hides the name of the file in the
- current picker (default is false)
+ {hide_filename} (boolean) if true, hides the name of the file
+ in the current picker (default is
+ false)
+ {severity} (string|number) filter diagnostics by severity name
+ (string) or id (number)
+ {severity_limit} (string|number) filter for diagnostics equal or more
+ severe wrt severity name (string) or
+ id (number)
+ {severity_bound} (string|number) filter for diagnostics equal or less
+ severe wrt severity name (string) or
+ id (number)
+ {no_sign} (bool) hide LspDiagnosticSigns from Results
+ (default is false)
+ {line_width} (number) set length of diagnostic entry text
+ in Results