haskell-config for nvim & ge_proton install script
This commit is contained in:
25
nvim-config/lua/plugins/haskell.lua
Normal file
25
nvim-config/lua/plugins/haskell.lua
Normal file
@ -0,0 +1,25 @@
|
||||
return {
|
||||
"mrcjkb/haskell-tools.nvim",
|
||||
ft = { "haskell", "lhaskell", "cabal" },
|
||||
opts = {
|
||||
|
||||
hls = {
|
||||
settings = {
|
||||
haskell = {
|
||||
formattingProvider = "fourmolu",
|
||||
-- wir nutzen das interne Plugin, kein externes Binary nötig:
|
||||
plugin = { fourmolu = { config = { external = false } } },
|
||||
|
||||
-- .cabal-Formatting komplett deaktivieren (sonst verlangt HLS cabal-fmt)
|
||||
cabalFormattingProvider = "none",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- optional: Safety im on_attach
|
||||
on_attach = function(client, bufnr)
|
||||
if vim.bo[bufnr].filetype == "cabal" then
|
||||
client.server_capabilities.documentFormattingProvider = false
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user