Skip to content

Commit eda5b49

Browse files
authored
Coc config file requires a {} nesting everything
Coc site [1] now shows an example config with a top level `{}` that includes everything. Without it, `Coc` complains about syntax error in the config file, and the language server will not be loaded. ```json { "languageserver": { "go": { "command": "gopls", "rootPatterns": ["go.mod"], "trace.server": "verbose", "filetypes": ["go"] } } } ``` [1] https://github.com/neoclide/coc.nvim
1 parent bda4058 commit eda5b49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ Follow Coc's [installation instructions](https://github.com/neoclide/coc.nvim).
382382
Then issue `:CocConfig` and add the following to your Coc config file.
383383

384384
```json
385+
{
385386
"languageserver": {
386387
"haskell": {
387388
"command": "haskell-language-server-wrapper",
@@ -404,6 +405,7 @@ Then issue `:CocConfig` and add the following to your Coc config file.
404405
}
405406
}
406407
}
408+
}
407409
```
408410

409411
#### LanguageClient-neovim

0 commit comments

Comments
 (0)