Files
dotfiles/nvim/lua/lsp/hls.lua

20 lines
430 B
Lua

local M = {}
M.setup = function(on_attach, capabilities)
require("lspconfig").hls.setup({
capabilities = capabilities,
cmd = { "haskell-language-server-wrapper", "--lsp" },
on_attach = on_attach,
filetypes = { "haskell", "lhaskell" },
settings = {
haskell = {
-- formattingProvider = "stylish-haskell",
--[[ formattingProvider = "",
cabalFormattingProvider = "cabalfmt", ]]
},
},
})
end
return M