Disable gopls diagnostics

Fixes #178
pull/181/head
Thompson, Brian 3 years ago
parent f142d54946
commit 9a0a272cad

@ -84,6 +84,9 @@ M.on_attach = function(client, bufnr)
if client.name == "tsserver" then if client.name == "tsserver" then
client.resolved_capabilities.document_formatting = false client.resolved_capabilities.document_formatting = false
end end
if client.name == "gopls" then
client.resolved_capabilities.languageServerExperimentalFeatures.diagnostics = false
end
lsp_keymaps(bufnr) lsp_keymaps(bufnr)
lsp_highlight_document(client) lsp_highlight_document(client)
end end

Loading…
Cancel
Save