mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +00:00
better server configuration.
parent
db753b83f6
commit
7de39ba9b1
@ -2,18 +2,23 @@
|
||||
2. Install [coc.nvim](https://github.com/neoclide/coc.nvim)
|
||||
|
||||
`~/.config/nvim/coc-settings.json`
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"languageserver": {
|
||||
"ccls": {
|
||||
"command": "ccls",
|
||||
"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:
|
||||
|
||||
```zsh
|
||||
|
Loading…
Reference in New Issue
Block a user