Configuration: more advanced Vim / Coc example (#3181)

Adding an example with settings

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
This commit is contained in:
Andy 2022-09-17 19:26:18 +02:00 committed by GitHub
parent 41c978dd66
commit aee737237c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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