diff options
-rw-r--r-- | ftplugin/haskell.lua | 1 | ||||
-rw-r--r-- | lua/default-config.lua | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/ftplugin/haskell.lua b/ftplugin/haskell.lua new file mode 100644 index 00000000..374bed1a --- /dev/null +++ b/ftplugin/haskell.lua @@ -0,0 +1 @@ +require("lsp").setup "haskell" diff --git a/lua/default-config.lua b/lua/default-config.lua index 739612af..35c5e06f 100644 --- a/lua/default-config.lua +++ b/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 = { { |