summaryrefslogtreecommitdiffstats
path: root/compiler/tidy.vim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/tidy.vim')
-rw-r--r--compiler/tidy.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/tidy.vim b/compiler/tidy.vim
index 380c8d88..7f7f12af 100644
--- a/compiler/tidy.vim
+++ b/compiler/tidy.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/tidy.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('tidy', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tidy') == -1
" Vim compiler file
" Compiler: HTML Tidy
@@ -26,5 +21,3 @@ CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %:S
" foo.html:8:1: Warning: inserting missing 'foobar' element
" foo.html:9:2: Error: <foobar> is not recognized!
CompilerSet errorformat=%f:%l:%c:\ %trror:%m,%f:%l:%c:\ %tarning:%m,%-G%.%#
-
-endif