feat: migrate to Telescope diagnostics using vim.diagnostic (#1553)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -142,4 +142,22 @@ LATEST version. Every other commit is not supported. So make sure you build
|
||||
the newest nightly before reporting issues.
|
||||
|
||||
|
||||
*telescope.changelog-1553*
|
||||
|
||||
Date: December 10, 2021
|
||||
PR: https://github.com/nvim-telescope/telescope.nvim/pull/1553
|
||||
|
||||
Move from `vim.lsp.diagnostic` to `vim.diagnostic`.
|
||||
|
||||
Because the newly added `vim.diagnostic` has no longer anything to do with lsp
|
||||
we also decided to rename our diagnostic functions:
|
||||
Telescope lsp_document_diagnostics -> Telescope diagnostics bufnr=0
|
||||
Telescope lsp_workspace_diagnostics -> Telescope diagnostics
|
||||
Because of that the `lsp_*_diagnostics` inside Telescope will be deprecated
|
||||
and removed soon. The new `diagnostics` works almost identical to the previous
|
||||
functions. Note that there is no longer a workspace diagnostics. You can only
|
||||
get all diagnostics for all open buffers.
|
||||
|
||||
|
||||
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
|
||||
Reference in New Issue
Block a user