nvim config stolen from @Lukacms
This commit is contained in:
19
nvim/lua/lsp/hls.lua
Normal file
19
nvim/lua/lsp/hls.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user