From 25b410a9052e3fb5d05808c64dffd750d6cd89ed Mon Sep 17 00:00:00 2001 From: andys8 Date: Fri, 16 Sep 2022 20:23:27 +0200 Subject: [PATCH] Configuration: more advanced Vim / Coc example Adding an example with settings --- docs/configuration.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index 73ab3f39fd..f6f63439ba 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -271,6 +271,8 @@ Coc is recommend since it is the only complete LSP implementation for Vim and Ne Follow Coc's [installation instructions](https://github.com/neoclide/coc.nvim). Then issue `:CocConfig` and add the following to your Coc config file. +##### Minimal Example + ```json { "languageserver": { @@ -284,6 +286,32 @@ Then issue `:CocConfig` and add the following to your Coc config file. } ``` +##### Example with Settings + +```json +{ + "languageserver": { + "haskell": { + "command": "haskell-language-server-wrapper", + "args": ["--lsp"], + "rootPatterns": [ "*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml" ], + "filetypes": ["haskell", "lhaskell"], + "settings": { + "haskell": { + "checkParents": "CheckOnSave", + "checkProject": true, + "maxCompletions": 40, + "formattingProvider": "ormolu", + "plugin": { + "stan": { "globalOn": true } + } + } + } + } + } +} +``` + #### LanguageClient-neovim ##### vim-plug