1 YouCompleteMe
Fangrui Song edited this page 2019-11-02 13:40:53 -07:00

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