vim: add json lsp

This commit is contained in:
Sean Buckley 2024-03-02 00:28:37 -05:00
parent 419d7a5cd2
commit 439fde73c2

View file

@ -55,6 +55,14 @@ lspconfig.nil_ls.setup({
}, },
}) })
----------------------------------------------------------------
lspconfig.jsonls.setup({
capabilities = capabilities,
on_attach = function(client, _)
client.server_capabilities.documentFormattingProvider = false
end,
})
---------------------------------------------------------------- ----------------------------------------------------------------
lspconfig.yamlls.setup({ lspconfig.yamlls.setup({
capabilities = capabilities, capabilities = capabilities,
@ -107,6 +115,7 @@ lspconfig.efm.setup({
"css", "css",
"html", "html",
"javascript", "javascript",
"json",
"typescript", "typescript",
"python", "python",
}, },
@ -118,6 +127,7 @@ lspconfig.efm.setup({
css = efmprettier, css = efmprettier,
html = efmprettier, html = efmprettier,
javascript = efmprettier, javascript = efmprettier,
json = efmprettier,
typescript = efmprettier, typescript = efmprettier,
python = { python = {
{ {