feat: migrate to Telescope diagnostics using vim.diagnostic (#1553)

This commit is contained in:
Simon Hauser
2021-12-10 17:49:06 +01:00
committed by GitHub
parent 61240ac75a
commit 56325fefb2
7 changed files with 209 additions and 209 deletions

View File

@@ -1458,11 +1458,11 @@ builtin.lsp_dynamic_workspace_symbols({opts}) *builtin.lsp_dynamic_workspace_sym
with hl_group
builtin.lsp_document_diagnostics({opts}) *builtin.lsp_document_diagnostics()*
Lists LSP diagnostics for the current buffer
builtin.diagnostics({opts}) *builtin.diagnostics()*
Lists diagnostics for current or all open buffers
- Fields:
- `All severity flags can be passed as `string` or `number` as per
`:vim.lsp.protocol.DiagnosticSeverity:`
`:vim.diagnostic.severity:`
- Default keymaps:
- `<C-l>`: show autocompletion menu to prefilter your query with the
diagnostic you want to see (i.e. `:warning:`)
@@ -1472,6 +1472,8 @@ builtin.lsp_document_diagnostics({opts}) *builtin.lsp_document_diagnostics()*
{opts} (table) options to pass to the picker
Options: ~
{bufnr} (string|number) if nil get diagnostics for all open
buffers. Use 0 for current buffer
{severity} (string|number) filter diagnostics by severity name
(string) or id (number)
{severity_limit} (string|number) keep diagnostics equal or more
@@ -1480,39 +1482,12 @@ builtin.lsp_document_diagnostics({opts}) *builtin.lsp_document_diagnostics()*
{severity_bound} (string|number) keep diagnostics equal or less
severe wrt severity name (string) or
id (number)
{no_sign} (boolean) hide LspDiagnosticSigns from Results
(default: 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:`)
Parameters: ~
{opts} (table) options to pass to the picker
Options: ~
{severity} (string|number) filter diagnostics by severity name
(string) or id (number)
{severity_limit} (string|number) keep diagnostics equal or more
severe wrt severity name (string) or
id (number)
{severity_bound} (string|number) keep diagnostics equal or less
severe wrt severity name (string) or
id (number)
{no_sign} (boolean) hide LspDiagnosticSigns from Results
{no_sign} (boolean) hide DiagnosticSigns from Results
(default: false)
{line_width} (number) set length of diagnostic entry text
in Results
{namespace} (number) limit your diagnostics to a specific
namespace