From 14746ad405d59aab70c7ba0d2600e99ecaf3ee31 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Mon, 12 Aug 2019 18:08:10 +0200 Subject: [PATCH] Update coc config --- editors/vim/coc-settings.json | 41 +++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/editors/vim/coc-settings.json b/editors/vim/coc-settings.json index 0990992..7171b32 100644 --- a/editors/vim/coc-settings.json +++ b/editors/vim/coc-settings.json @@ -1,7 +1,34 @@ -//"languageserver": { - //"rust": { - //"command": "ra_lsp_server", - //"filetypes": ["rust"], - //"rootPatterns": ["Cargo.toml"] - //} -//} +{ + "languageserver": { + "elmLS": { + "command": "elm-language-server", + "args": ["--stdio"], + "filetypes": ["elm"], + "rootPatterns": ["elm.json"], + "initializationOptions": { + "runtime": "node", + "elmPath": "elm", + "elmFormatPath": "elm-format", + "elmTestPath": "elm-test" + } + } + //"rust": { + //"command": "ra_lsp_server", + //"filetypes": ["rust"], + //"rootPatterns": ["Cargo.toml"] + //}, + //"haskell": { + //"command": "hie-wrapper", + //"rootPatterns": [".stack.yaml", "cabal.config", "package.yaml"], + //"filetypes": ["hs", "lhs", "haskell"], + //"initializationOptions": {}, + //"settings": { + //"languageServerHaskell": { + //"hlintOn": false, + //"maxNumberOfProblems": 10, + //"completionSnippetsOn": true + //} + //} + //} + } +}