From 9a0a272cad068a117745fbdcd284fbedf8de14ad Mon Sep 17 00:00:00 2001 From: "Thompson, Brian" Date: Thu, 23 Jun 2022 11:12:34 -0500 Subject: [PATCH] Disable gopls diagnostics Fixes #178 --- lua/user/lsp/handlers.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/user/lsp/handlers.lua b/lua/user/lsp/handlers.lua index 3c401de..57e2ec0 100644 --- a/lua/user/lsp/handlers.lua +++ b/lua/user/lsp/handlers.lua @@ -84,6 +84,9 @@ M.on_attach = function(client, bufnr) if client.name == "tsserver" then client.resolved_capabilities.document_formatting = false end + if client.name == "gopls" then + client.resolved_capabilities.languageServerExperimentalFeatures.diagnostics = false + end lsp_keymaps(bufnr) lsp_highlight_document(client) end