summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-12-10 17:49:06 +0100
committerGitHub <noreply@github.com>2021-12-10 17:49:06 +0100
commit56325fefb21a8a9331a25e294c074887dfb2a60c (patch)
tree1b0c08e44dc437ed96824eae941a991a6a204ac1 /doc
parent61240ac75a93b3cdafb4325ab4e9d407f83965f4 (diff)
feat: migrate to Telescope diagnostics using vim.diagnostic (#1553)
Diffstat (limited to 'doc')
-rw-r--r--doc/telescope.txt41
-rw-r--r--doc/telescope_changelog.txt18
2 files changed, 26 insertions, 33 deletions
diff --git a/doc/telescope.txt b/doc/telescope.txt
index f4c9c8a..eae3ebe 100644
--- a/doc/telescope.txt
+++ b/doc/telescope.txt
@@ -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
diff --git a/doc/telescope_changelog.txt b/doc/telescope_changelog.txt
index 6d90aa3..f909404 100644
--- a/doc/telescope_changelog.txt
+++ b/doc/telescope_changelog.txt
@@ -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: