diff options
Diffstat (limited to 'autoload/vital/crystal.vim')
-rw-r--r-- | autoload/vital/crystal.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/autoload/vital/crystal.vim b/autoload/vital/crystal.vim index 7674c4ef..68938d83 100644 --- a/autoload/vital/crystal.vim +++ b/autoload/vital/crystal.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/vital/crystal.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:plugin_name = expand('<sfile>:t:r') let s:vital_base_dir = expand('<sfile>:h') @@ -335,5 +330,3 @@ else return a:list endfunction endif - -endif |