Open Gabirel opened 7 years ago
so?
I've been lazy recently. If you really need this, I could finish this in this week. Probably.
Tested on a medium project successfully, which has over 10 thousand lines of source code.
YES! Please Use YCM since YCM is so easy and smooth to use.
~/.SpaceVim.d/init.vim
let g:spacevim_enable_ycm = 1
PS: If you want to enable YCM in ~/.SpaceVim.d/init.toml
, please use bootstrap-function
.ycm_extra_config.py
cmake
at the same time)
ycm
is for generating .ycm_extra_config.py
and conan_ycm_flags.json
[requires]
OpenSSL/1.0.2o@conan/stable
[generators]
cmake
ycm
Generate flags and config file Execute the below code when configuring the project for cmake
conan install ..
Copy and link flags and config file for YCM to your root directory of the project
Make sure that you have .ycm_extra_config.py
and conan_ycm_flags.json
in your root directory of the project
That's it!! Enjoy YCM and SpaceVim.
TODO
PS: Here's are my config for YCM. Use it at your own risk.
let g:spacevim_enable_ycm = 1
let g:spacevim_custom_plugins = [
\ ['rdnetto/YCM-Generator'],
\ ]
let g:ycm_error_symbol = '✗'
let g:ycm_complete_in_comments = 1
let g:ycm_collect_identifiers_from_comments_and_strings = 0
let g:ycm_confirm_extra_conf = 0
let g:ycm_seed_identifiers_with_syntax = 0
let g:ycm_semantic_triggers = {
\ 'c' : ['->', '.'],
\ 'cpp,objcpp' : ['->', '.', '::'],
\ 'php' : ['->', '::'],
\ 'cs,java,javascript,typescript,d,python,perl6,scala,vb,elixir,go' : ['.'],
\ 'ruby' : ['.', '::'],
\ 'lua' : ['.', ':'],
\ }
Teach you how to make SpaceVim become a IDE for C/C++