1
Fork 0
satellite/home/features/neovim/config/lua/my/plugins/haskell-tools.lua

33 lines
724 B
Lua
Raw Normal View History

2023-09-22 20:08:11 +02:00
local lspconfig = require("my.plugins.lspconfig")
local M = {
"mrcjkb/haskell-tools.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
},
version = "^2",
ft = { "haskell", "lhaskell", "cabal", "cabalproject" },
}
function M.config()
vim.g.haskell_tools = {
hls = {
on_attach = lspconfig.on_attach,
2023-12-02 00:46:56 +01:00
settings = {
haskell = {
formattingProvider = "fourmolu",
-- This seems to work better with custom preludes
-- See this issue https://github.com/fourmolu/fourmolu/issues/357
plugin = { fourmolu = { config = { external = true } } },
},
},
2023-09-22 20:08:11 +02:00
},
tools = {
hover = {
enable = false,
},
},
}
end
return M