Skip to content
Fangrui Song edited this page Nov 2, 2019 · 1 revision

Install YouCompleteMe

cd ~/.vim/bundle/YouCompleteMe
./install.py  # --clang-completer is not needed

Configure

let g:ycm_language_server =
  \ [{
  \   'name': 'ccls',
  \   'cmdline': [ 'ccls' ],
  \   'filetypes': [ 'c', 'cpp', 'cuda', 'objc', 'objcpp' ],
  \   'project_root_files': [ '.ccls-root', 'compile_commands.json' ]
  \ }]

Cross references

:YcmCompleter GoToDefinition
:YcmCompleter GoToDeclaration
:YcmCompleter GoToReferences
:YcmCompleter GoToImplementation
:YcmCompleter GoToType
Clone this wiki locally