Set up languageservers

master
Hektor Misplon 2022-09-24 11:28:19 +02:00
parent 8c555f9572
commit 8f8a17733f
1 changed files with 43 additions and 6 deletions

View File

@ -19,7 +19,8 @@
"json", "json",
"Markdown", "Markdown",
"css", "css",
"svelte" "svelte",
"haskell"
], ],
"coc.preferences.formatOnSaveFiletypes": [ "coc.preferences.formatOnSaveFiletypes": [
"javascript", "javascript",
@ -31,13 +32,49 @@
"json", "json",
"Markdown", "Markdown",
"css", "css",
"svelte" "svelte",
"haskell"
], ],
"languageserver": { "languageserver": {
"racket": { // "racket": {
"command": "racket", // "command": "racket",
"args": ["--lib", "racket-langserver"], // "args": ["--lib", "racket-langserver"],
"filetypes": ["scheme", "racket"] // "filetypes": ["scheme", "racket"]
// }
"bash": {
"command": "bash-language-server",
"args": ["start"],
"filetypes": ["sh"]
},
"dockerfile": {
"command": "docker-langserver",
"args": ["--stdio"],
"filetypes": ["dockerfile"]
},
"haskell": {
"command": "haskell-language-server-wrapper",
"args": ["--lsp"],
"rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"],
"filetypes": ["haskell", "lhaskell"],
"settings": {
"haskell": {
"formattingProvider": "stylish-haskell"
}
}
// Run `haskell-language-server-wrapper generate-default-config` for a defult config
// "settings": { ... }
},
"R": {
"enable": true,
"command": "/usr/bin/R",
"args": [
"--slave",
"-e",
"languageserver::run()"
],
"filetypes": [
"r"
]
} }
}, },
"diagnostic.messageTarget": "echo", "diagnostic.messageTarget": "echo",