Browse Source

add fields for latex (#1118)

ichigo-gyuunyuu 4 years ago
parent
commit
623994af2a
1 changed files with 16 additions and 0 deletions
  1. 16 0
      lua/default-config.lua

+ 16 - 0
lua/default-config.lua

@@ -749,6 +749,22 @@ lvim.lang = {
       },
       },
     },
     },
   },
   },
+  tex = {
+    formatter = {
+      exe = "latexindent",
+      args = {},
+      stdin = false,
+    },
+    linters = { "chketx" },
+    lsp = {
+      provider = "texlab",
+      setup = {
+        cmd = { DATA_PATH .. "/lspinstall/latex/texlab" },
+        on_attach = common_on_attach,
+        capabilities = common_capabilities,
+      },
+    },
+  },
   typescript = {
   typescript = {
     -- @usage can be prettier or eslint
     -- @usage can be prettier or eslint
     formatter = {
     formatter = {