summaryrefslogtreecommitdiffstats
path: root/compiler/ruby.vim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/ruby.vim')
-rw-r--r--compiler/ruby.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/ruby.vim b/compiler/ruby.vim
index 8f0127c9..53dc0106 100644
--- a/compiler/ruby.vim
+++ b/compiler/ruby.vim
@@ -1,11 +1,6 @@
-let s:base = expand("<sfile>:h:h")
-let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
-let files = filter(globpath(&rtp, 'compiler/ruby.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim compiler file
" Language: Ruby
@@ -51,5 +46,3 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
-
-endif