-
Notifications
You must be signed in to change notification settings - Fork 273
ccls
Fangrui Song edited this page Sep 1, 2018
·
3 revisions
ccls is a C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting.
See Getting-started for build instructions.
Then put these lines to your vimrc:
let g:LanguageClient_serverCommands = {
\ 'c': ['/path/to/ccls/Release/ccls'],
\ 'cpp': ['/path/to/ccls/Release/ccls'],
\ 'objc': ['/path/to/ccls/Release/ccls'],
\ }
You are all set! Many LSP standard operations textDocument/definition textDocument/references textDocument/hover should work out of the box. You may want to customize some behavior, see:
- wiki/Initialization-options
- wiki/LanguageClient-neovim. It includes a section introducing custom cross references.