Merge pull request #110 from meh/fix-semantic-triggers
Improve default semantic triggers
This commit is contained in:
commit
5fad9564d1
@ -650,11 +650,14 @@ listed as a trigger, the same thing would happen when the user typed `foo->`.
|
||||
Default: `[see next line]`
|
||||
|
||||
let g:ycm_semantic_triggers = {
|
||||
\ 'c,cpp,objc,objcpp' : ['->', '.', '::'],
|
||||
\ 'c' : ['->', '.'],
|
||||
\ 'objc' : ['->', '.'],
|
||||
\ 'cpp,objcpp' : ['->', '.', '::'],
|
||||
\ 'perl,php' : ['->'],
|
||||
\ 'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb' : ['.'],
|
||||
\ 'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb,elixir' : ['.'],
|
||||
\ 'lua' : ['.', ':'],
|
||||
}
|
||||
\ 'erlang' : [':'],
|
||||
}
|
||||
|
||||
FAQ
|
||||
---
|
||||
|
@ -97,10 +97,13 @@ let g:ycm_global_ycm_extra_conf =
|
||||
|
||||
let g:ycm_semantic_triggers =
|
||||
\ get( g:, 'ycm_semantic_triggers', {
|
||||
\ 'c,cpp,objc,objcpp' : ['->', '.', '::'],
|
||||
\ 'c' : ['->', '.'],
|
||||
\ 'objc' : ['->', '.'],
|
||||
\ 'cpp,objcpp' : ['->', '.', '::'],
|
||||
\ 'perl,php' : ['->'],
|
||||
\ 'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb' : ['.'],
|
||||
\ 'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb,elixir' : ['.'],
|
||||
\ 'lua' : ['.', ':'],
|
||||
\ 'erlang' : [':'],
|
||||
\ } )
|
||||
|
||||
" On-demand loading. Let's use the autoload folder and not slow down vim's
|
||||
|
Loading…
Reference in New Issue
Block a user