add(nvim): haskell LSP and formatter

This commit is contained in:
Léana 江 2023-05-12 22:07:48 +02:00 committed by Léana 江
parent 6dcec698ff
commit 69926c0807
3 changed files with 58 additions and 0 deletions

View file

@ -161,6 +161,12 @@ require "lspconfig".metals.setup {
require "lspconfig".hls.setup {
on_attach = on_attach,
capabilities = capabilities,
settings = {
haskell = {
cabalFormattingProvider = "cabalfmt",
formattingProvider = "fourmolu"
}
}
}
-- Python
require "lspconfig".pylsp.setup {

View file

@ -2,6 +2,10 @@
"name": "leana-snippets",
"contributes": {
"snippets": [
{
"language": "haskell",
"path": "./haskell.json"
},
{
"language": "scala",
"path": "./scala.json"