Prechádzať zdrojové kódy

use lsp to format json

Chris 4 rokov pred
rodič
commit
38a0668e4d
2 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 1 1
      lua/lsp/efm-general-ls.lua
  2. 1 0
      lv-config.lua

+ 1 - 1
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 = {

+ 1 - 0
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