summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ftdetect/polyglot.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 39ba7120..72d64410 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -546,6 +546,12 @@ if index(g:polyglot_disabled, 'ruby') == -1
au BufNewFile,BufRead [vV]agrantfile set ft=ruby
endif
+" Declared after ruby so that the more general *.rb
+" doesn't override
+if index(g:polyglot_disabled, 'rspec') == -1
+ au BufNewFile,BufRead *_spec.rb set ft=rspec
+endif
+
if index(g:polyglot_disabled, 'rust') == -1
au BufNewFile,BufRead *.rs set ft=rust
endif