diff options
author | Chris <[email protected]> | 2021-06-29 13:48:58 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2021-06-29 13:48:58 -0400 |
commit | 38a0668e4d01e412d40e6d7281346d287aad9c52 (patch) | |
tree | 7b01d4926951aad09882b53d818dfc2f396bb07e | |
parent | 02865aba7b9477873b87a267b2953a86fd55f978 (diff) |
use lsp to format json
-rw-r--r-- | lua/lsp/efm-general-ls.lua | 2 | ||||
-rw-r--r-- | lv-config.lua | 1 |
2 files changed, 2 insertions, 1 deletions
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 |