Browse Source

Adding `::` as a semantic trigger for Ruby

Fixes #367.
Strahinja Val Markovic 11 years ago
parent
commit
ee3ede5040
2 changed files with 4 additions and 2 deletions
  1. 2 1
      README.md
  2. 2 1
      plugin/youcompleteme.vim

+ 2 - 1
README.md

@@ -967,7 +967,8 @@ Default: `[see next line]`
       \   'cpp,objcpp' : ['->', '.', '::'],
       \   'perl' : ['->'],
       \   'php' : ['->', '::'],
-      \   'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb,elixir,go' : ['.'],
+      \   'cs,java,javascript,d,vim,python,perl6,scala,vb,elixir,go' : ['.'],
+      \   'ruby' : ['.', '::'],
       \   'lua' : ['.', ':'],
       \   'erlang' : [':'],
       \ }

+ 2 - 1
plugin/youcompleteme.vim

@@ -144,7 +144,8 @@ let g:ycm_semantic_triggers =
       \   'cpp,objcpp' : ['->', '.', '::'],
       \   'perl' : ['->'],
       \   'php' : ['->', '::'],
-      \   'cs,java,javascript,d,vim,ruby,python,perl6,scala,vb,elixir,go' : ['.'],
+      \   'cs,java,javascript,d,vim,python,perl6,scala,vb,elixir,go' : ['.'],
+      \   'ruby' : ['.', '::'],
       \   'lua' : ['.', ':'],
       \   'erlang' : [':'],
       \ } )