From 0798ad3a3a071db1b647df5aecd7698ed9aff7d9 Mon Sep 17 00:00:00 2001 From: Mathias Fußenegger Date: Sat, 14 Nov 2020 20:39:05 +0100 Subject: lsp: Expose all diagnostics (#13285) * lsp: Remove duplicate `diagnostics` fallback in diagnostic.display * lsp: Expose all diagnostics Before the changes in #12655 it was possible to retrieve all diagnostics via `vim.lsp.util.diagnostics_by_buf`. This adds a `diagnostic.get_all()` to enable users to retrieve all diagnostics. Use cases for that could include loading all diagnostics into the quickfix list, or to build an enhanced goto_next that can move across buffers. --- runtime/doc/lsp.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/doc') diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index f110782490..e29748fdff 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -1032,6 +1032,12 @@ get({bufnr}, {client_id}) *vim.lsp.diagnostic.get()* diagnostics. Else, return just the diagnostics associated with the client_id. +get_all() *vim.lsp.diagnostic.get_all()* + Get all diagnostics for all clients + + Return: ~ + Diagnostic[] + *vim.lsp.diagnostic.get_count()* get_count({bufnr}, {severity}, {client_id}) Get the counts for a particular severity -- cgit