Improve default semantic triggers

This commit is contained in:
meh 2013-02-13 14:18:27 +01:00
parent 0399ec94c8
commit 86881d01dd
2 changed files with 11 additions and 5 deletions

View File

@ -647,11 +647,14 @@ listed as a trigger, the same thing would happen when the user typed `foo->`.
Default: `[see next line]` Default: `[see next line]`
let g:ycm_semantic_triggers = { let g:ycm_semantic_triggers = {
\ 'c,cpp,objc,objcpp' : ['->', '.', '::'], \ 'c' : ['->', '.'],
\ 'objc' : ['->', '.'],
\ 'cpp,objcpp' : ['->', '.', '::'],
\ 'perl,php' : ['->'], \ 'perl,php' : ['->'],
\ 'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb' : ['.'], \ 'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb,elixir' : ['.'],
\ 'lua' : ['.', ':'], \ 'lua' : ['.', ':'],
} \ 'erlang' : [':'],
}
FAQ FAQ
--- ---

View File

@ -97,10 +97,13 @@ let g:ycm_global_ycm_extra_conf =
let g:ycm_semantic_triggers = let g:ycm_semantic_triggers =
\ get( g:, 'ycm_semantic_triggers', { \ get( g:, 'ycm_semantic_triggers', {
\ 'c,cpp,objc,objcpp' : ['->', '.', '::'], \ 'c' : ['->', '.'],
\ 'objc' : ['->', '.'],
\ 'cpp,objcpp' : ['->', '.', '::'],
\ 'perl,php' : ['->'], \ 'perl,php' : ['->'],
\ 'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb' : ['.'], \ 'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb,elixir' : ['.'],
\ 'lua' : ['.', ':'], \ 'lua' : ['.', ':'],
\ 'erlang' : [':'],
\ } ) \ } )
" On-demand loading. Let's use the autoload folder and not slow down vim's " On-demand loading. Let's use the autoload folder and not slow down vim's