Skip to content
David Duarte edited this page Nov 19, 2017 · 14 revisions

CQuery is a Low-latency language server for large C++ code-bases, powered by libclang.

Building

See https://github.com/jacobdufault/cquery#build-cquery

Configuration

let g:LanguageClient_serverCommands = {
\ 'cpp': ['yourCQueryDirectory/build/app', '--language-server']                                                                                                                                                                              
\ }
let g:LanguageClient_loadSettings = 1

Workspace configuration

Add in your project a file under .vim/settings.json with this content

{
        "initializationOptions": {
                "cacheDirectory": "/tmp/cquery",
		"resourceDirectory": "yourCQueryDirectory/clang_resource_dir"
        }
}

Change cacheDirectory according to your needs

Clone this wiki locally