summaryrefslogtreecommitdiffstats
path: root/indent/mail.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/mail.vim')
-rw-r--r--indent/mail.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/indent/mail.vim b/indent/mail.vim
index 462bd947..5899c2a4 100644
--- a/indent/mail.vim
+++ b/indent/mail.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/mail.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('mail', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mail') == -1
" Vim indent file
" Language: Mail
@@ -20,5 +15,3 @@ let b:did_indent = 1
" What works best is auto-indenting, disable other indenting.
" For formatting see the ftplugin.
setlocal autoindent nosmartindent nocindent indentexpr=
-
-endif