瀏覽代碼

haskell support

christianchiarulli 4 年之前
父節點
當前提交
8e26c44ffd
共有 2 個文件被更改,包括 17 次插入0 次删除
  1. 1 0
      ftplugin/haskell.lua
  2. 16 0
      lua/default-config.lua

+ 1 - 0
ftplugin/haskell.lua

@@ -0,0 +1 @@
+require("lsp").setup "haskell"

+ 16 - 0
lua/default-config.lua

@@ -498,6 +498,22 @@ lvim.lang = {
       },
     },
   },
+  haskell = {
+    formatters = { {
+      exe = "",
+      args = {},
+    } },
+    linters = {},
+    lsp = {
+      provider = "hls",
+      setup = {
+        cmd = {DATA_PATH .. "/lspinstall/haskell/haskell-language-server-wrapper", "--lsp" },
+        on_attach = common_on_attach,
+        on_init = common_on_init,
+        capabilities = common_capabilities,
+      },
+    },
+  },
   html = {
     formatters = {
       {