From dc373d7b7e6de3d8b3a47c138049c3f2fbfe1411 Mon Sep 17 00:00:00 2001 From: Sajid Mahmood Date: Sat, 1 Jan 2022 11:08:52 +0500 Subject: [PATCH] replaced deprecated telescope diagnostics command The old telescope diagnostics command for document and work-spaces has been deprecated, so replaced them with the new suggested command in the change-log number#1553 of telescope --- lua/user/whichkey.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/user/whichkey.lua b/lua/user/whichkey.lua index 11b6a7e..ee4e9c8 100644 --- a/lua/user/whichkey.lua +++ b/lua/user/whichkey.lua @@ -132,11 +132,11 @@ local mappings = { name = "LSP", a = { "lua vim.lsp.buf.code_action()", "Code Action" }, d = { - "Telescope lsp_document_diagnostics", + "Telescope diagnostics bufnr=0", "Document Diagnostics", }, w = { - "Telescope lsp_workspace_diagnostics", + "Telescope diagnostics", "Workspace Diagnostics", }, f = { "lua vim.lsp.buf.formatting()", "Format" },