From 7de39ba9b1b13d3071b7c69d7a863a71a39611c5 Mon Sep 17 00:00:00 2001 From: Francisco Lopes Date: Sun, 16 Dec 2018 04:43:47 -0200 Subject: [PATCH] better server configuration. --- coc.nvim.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/coc.nvim.md b/coc.nvim.md index 70f12de..b6fc259 100644 --- a/coc.nvim.md +++ b/coc.nvim.md @@ -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" + } } } } ``` +Note: coc.nvim also supports [configuration from `.vimrc` instead](https://github.com/neoclide/coc.nvim/blob/2e93b1feff57e41a04c9f714c61c025e2d17eaa3/doc/coc.txt#L625). + First example: ```zsh