summaryrefslogtreecommitdiffstats
path: root/autoload/ecrystal.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/ecrystal.vim')
-rw-r--r--autoload/ecrystal.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/autoload/ecrystal.vim b/autoload/ecrystal.vim
index 5225c753..43a49edd 100644
--- a/autoload/ecrystal.vim
+++ b/autoload/ecrystal.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, 'autoload/ecrystal.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('crystal', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
let s:ecrystal_extensions = {
\ 'cr': 'crystal',
@@ -39,5 +34,3 @@ function! ecrystal#SetSubtype() abort
endfunction
" vim: sw=2 sts=2 et:
-
-endif