From 8f8a17733f29abddf5641d6b0aac0eb38359950b Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sat, 24 Sep 2022 11:28:19 +0200 Subject: [PATCH] Set up languageservers --- .vim/coc-settings.json | 49 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/.vim/coc-settings.json b/.vim/coc-settings.json index 9bff44b..3a12b35 100644 --- a/.vim/coc-settings.json +++ b/.vim/coc-settings.json @@ -19,7 +19,8 @@ "json", "Markdown", "css", - "svelte" + "svelte", + "haskell" ], "coc.preferences.formatOnSaveFiletypes": [ "javascript", @@ -31,13 +32,49 @@ "json", "Markdown", "css", - "svelte" + "svelte", + "haskell" ], "languageserver": { - "racket": { - "command": "racket", - "args": ["--lib", "racket-langserver"], - "filetypes": ["scheme", "racket"] + // "racket": { + // "command": "racket", + // "args": ["--lib", "racket-langserver"], + // "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",