From 3825a97554365622ebb63175d50f4e3859249ce7 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 23 Feb 2022 21:22:28 +0100 Subject: [PATCH] feat: use Telescope for diagnostics --- lua/plugins/lspconfig.lua | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua index 3b50af3..ca2faf9 100644 --- a/lua/plugins/lspconfig.lua +++ b/lua/plugins/lspconfig.lua @@ -93,15 +93,8 @@ local function custom_on_attach(client, buffer_nr) bufnnoremap("", "lua vim.diagnostic.goto_next()") bufnnoremap("", "lua vim.diagnostic.goto_prev()") - -- Show line diagnostics - bufnnoremap("d", - 'lua vim.diagnostic.open_float(0, {scope = "line"})') - - -- Open local diagnostics in local list - bufnnoremap("D", "lua vim.diagnostic.setloclist()") - - -- Open all project diagnostics in quickfix list - bufnnoremap("", "lua vim.diagnostic.setqflist()") + -- Open diagnostics + bufnnoremap("d", "Telescope diagnostics") -- disable conflicting formatters if client.name == "tsserver" or client.name == "html" then