mirror of
https://github.com/haskell/haskell-language-server.git
synced 2024-09-11 08:45:35 +03:00
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:
parent
41c978dd66
commit
aee737237c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user