summaryrefslogtreecommitdiffstats
path: root/indent/reason.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/reason.vim')
-rw-r--r--indent/reason.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/indent/reason.vim b/indent/reason.vim
index 490cdeaf..4a5160bd 100644
--- a/indent/reason.vim
+++ b/indent/reason.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, 'indent/reason.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('reason', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reason') == -1
" Vim indent file
" Language: Reason (adapted from Rust)
@@ -224,5 +219,3 @@ function GetReasonIndent(lnum)
" Fall back on cindent, which does it mostly right
return cindent(a:lnum)
endfunction
-
-endif