chore(nvim): turn off formatting for diagnostics server

This commit is contained in:
Stefan Imhoff
2022-08-24 07:49:48 +02:00
parent 2bf30436fa
commit ba053d0950

View File

@@ -139,6 +139,11 @@ M.on_attach = function(client, bufnr)
client.resolved_capabilities.document_formatting = false
end
-- Diagnostic
if client.name == "diagnosticls" then
client.resolved_capabilities.document_formatting = false
end
lsp_keymaps(bufnr)
lsp_highlight_document(client)
end