mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
add(nvim): haskell LSP and formatter
This commit is contained in:
parent
6dcec698ff
commit
69926c0807
3 changed files with 58 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@
|
|||
"name": "leana-snippets",
|
||||
"contributes": {
|
||||
"snippets": [
|
||||
{
|
||||
"language": "haskell",
|
||||
"path": "./haskell.json"
|
||||
},
|
||||
{
|
||||
"language": "scala",
|
||||
"path": "./scala.json"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue