mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:30:03 +08:00
24 lines
1016 B
VimL
24 lines
1016 B
VimL
"let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py'
|
|
"let g:ycm_confirm_extra_conf = 0
|
|
let g:ycm_collect_identifiers_from_tags_files = 1
|
|
let g:ycm_collect_identifiers_from_comments_and_strings = 1
|
|
let g:ycm_key_list_select_completion = ['<C-TAB>', '<Down>']
|
|
let g:ycm_key_list_previous_completion = ['<C-S-TAB>','<Up>']
|
|
let g:ycm_seed_identifiers_with_syntax = 1
|
|
let g:ycm_key_invoke_completion = '<leader><tab>'
|
|
let g:ycm_semantic_triggers = {
|
|
\ 'c' : ['->', '.'],
|
|
\ 'objc' : ['->', '.'],
|
|
\ 'ocaml' : ['.', '#'],
|
|
\ 'cpp,objcpp' : ['->', '.', '::'],
|
|
\ 'perl' : ['->'],
|
|
\ 'php' : ['->', '::'],
|
|
\ 'cs,javascript,d,python,perl6,scala,vb,elixir,go' : ['.'],
|
|
\ 'java,jsp' : ['.'],
|
|
\ 'vim' : ['re![_a-zA-Z]+[_\w]*\.'],
|
|
\ 'ruby' : ['.', '::'],
|
|
\ 'lua' : ['.', ':'],
|
|
\ 'erlang' : [':'],
|
|
\ 'sh' : ['re!\w{2}', '/', '-'],
|
|
\ }
|