better server configuration.

Francisco Lopes 2018-12-16 04:43:47 -02:00
parent db753b83f6
commit 7de39ba9b1

@ -2,18 +2,23 @@
2. Install [coc.nvim](https://github.com/neoclide/coc.nvim) 2. Install [coc.nvim](https://github.com/neoclide/coc.nvim)
`~/.config/nvim/coc-settings.json` `~/.config/nvim/coc-settings.json`
```json ```jsonc
{ {
"languageserver": { "languageserver": {
"ccls": { "ccls": {
"command": "ccls", "command": "ccls",
"filetypes": ["c", "cpp", "cuda", "objc", "objcpp"], "filetypes": ["c", "cpp", "cuda", "objc", "objcpp"],
"initializationOptions": {} "rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"],
"initializationOptions": {
"cacheDirectory": "/tmp/ccls"
}
} }
} }
} }
``` ```
<sub>Note: coc.nvim also supports [configuration from `.vimrc` instead](https://github.com/neoclide/coc.nvim/blob/2e93b1feff57e41a04c9f714c61c025e2d17eaa3/doc/coc.txt#L625).</sub>
First example: First example:
```zsh ```zsh