From 38a0668e4d01e412d40e6d7281346d287aad9c52 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 29 Jun 2021 13:48:58 -0400 Subject: use lsp to format json --- lua/lsp/efm-general-ls.lua | 2 +- lv-config.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/lsp/efm-general-ls.lua b/lua/lsp/efm-general-ls.lua index da01db12..d85bc216 100644 --- a/lua/lsp/efm-general-ls.lua +++ b/lua/lsp/efm-general-ls.lua @@ -92,7 +92,7 @@ require"lspconfig".efm.setup { -- init_options = {initializationOptions}, cmd = {DATA_PATH .. "/lspinstall/efm/efm-langserver"}, init_options = {documentFormatting = true, codeAction = false}, - filetypes = {"lua", "python", "javascriptreact", "javascript", "typescript","typescriptreact","sh", "html", "css", "json", "yaml", "markdown", "vue"}, + filetypes = {"lua", "python", "javascriptreact", "javascript", "typescript","typescriptreact","sh", "html", "css", "yaml", "markdown", "vue"}, settings = { rootMarkers = {".git/"}, languages = { diff --git a/lv-config.lua b/lv-config.lua index 8b233158..bfbfffc6 100644 --- a/lv-config.lua +++ b/lv-config.lua @@ -72,6 +72,7 @@ O.lang.tsserver.linter = nil O.lang.tsserver.autoformat = true -- json +O.lang.json.active = true O.lang.json.autoformat = true -- ruby -- cgit v1.2.3