summaryrefslogtreecommitdiffstats
path: root/compiler/cryptol.vim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/cryptol.vim')
-rw-r--r--compiler/cryptol.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/cryptol.vim b/compiler/cryptol.vim
index 8cc53f38..062109ac 100644
--- a/compiler/cryptol.vim
+++ b/compiler/cryptol.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/cryptol.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('cryptol', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cryptol') == -1
" Vim compiler file
" Compiler: Cryptol version 1.8.19-academic Compiler
@@ -27,5 +22,3 @@ CompilerSet errorformat& " use the default 'errorformat'
" "%<" means the current file name without extension.
CompilerSet makeprg=cryptol\ -o\ %<\ %
-
-endif