mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
Add YouCompleteMe.md
parent
d56219e28d
commit
8cd3189413
28
YouCompleteMe.md
Normal file
28
YouCompleteMe.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
Install [YouCompleteMe](https://github.com/ycm-core/YouCompleteMe)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cd ~/.vim/bundle/YouCompleteMe
|
||||||
|
./install.py # --clang-completer is not needed
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configure
|
||||||
|
|
||||||
|
```vim
|
||||||
|
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
|
||||||
|
|
||||||
|
```vim
|
||||||
|
:YcmCompleter GoToDefinition
|
||||||
|
:YcmCompleter GoToDeclaration
|
||||||
|
:YcmCompleter GoToReferences
|
||||||
|
:YcmCompleter GoToImplementation
|
||||||
|
:YcmCompleter GoToType
|
||||||
|
```
|
@ -13,6 +13,7 @@
|
|||||||
+ [[LanguageClient-neovim]]
|
+ [[LanguageClient-neovim]]
|
||||||
+ [[vim-lsp]]
|
+ [[vim-lsp]]
|
||||||
+ [[vim-lsc]]
|
+ [[vim-lsc]]
|
||||||
|
+ [[YouCompleteMe]]
|
||||||
- [[Visual Studio Code]]
|
- [[Visual Studio Code]]
|
||||||
- [[Monaco Editor | https://github.com/MaskRay/ccls/wiki/Monaco-Editor]]
|
- [[Monaco Editor | https://github.com/MaskRay/ccls/wiki/Monaco-Editor]]
|
||||||
* [[Project Setup]]
|
* [[Project Setup]]
|
||||||
|
Loading…
Reference in New Issue
Block a user