summaryrefslogtreecommitdiffstats
path: root/compiler
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-24 18:52:18 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-24 18:52:18 +0200
commit8e61708b4527072aa9250deb2c4cf7a56e3f3b0a (patch)
tree73e3bf7897429cee96eb36f7f291d50fbbe11ca9 /compiler
parent3c148e9ef5a303a599320eb64e608392db82eeb0 (diff)
downloadvim-polyglot-8e61708b4527072aa9250deb2c4cf7a56e3f3b0a.tar.gz
vim-polyglot-8e61708b4527072aa9250deb2c4cf7a56e3f3b0a.zip
Use vim-polyglot only as fallback to other plugins, fixes #580
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ant.vim5
-rw-r--r--compiler/bdf.vim5
-rw-r--r--compiler/cake.vim5
-rw-r--r--compiler/cargo.vim5
-rw-r--r--compiler/coffee.vim5
-rw-r--r--compiler/credo.vim5
-rw-r--r--compiler/cryptol.vim5
-rw-r--r--compiler/cs.vim5
-rw-r--r--compiler/cucumber.vim5
-rw-r--r--compiler/dot.vim5
-rw-r--r--compiler/eruby.vim5
-rw-r--r--compiler/exunit.vim5
-rw-r--r--compiler/fish.vim5
-rw-r--r--compiler/go.vim5
-rw-r--r--compiler/gradle.vim5
-rw-r--r--compiler/gradlew.vim5
-rw-r--r--compiler/haml.vim5
-rw-r--r--compiler/ledger.vim5
-rw-r--r--compiler/lilypond.vim5
-rw-r--r--compiler/ls.vim5
-rw-r--r--compiler/mix.vim5
-rw-r--r--compiler/nim.vim5
-rw-r--r--compiler/nix-build.vim5
-rw-r--r--compiler/ocaml.vim5
-rw-r--r--compiler/powershell.vim5
-rw-r--r--compiler/python.vim5
-rw-r--r--compiler/rake.vim5
-rw-r--r--compiler/rspec.vim5
-rw-r--r--compiler/ruby.vim5
-rw-r--r--compiler/rubyunit.vim5
-rw-r--r--compiler/rustc.vim5
-rw-r--r--compiler/sass.vim5
-rw-r--r--compiler/sbt.vim5
-rw-r--r--compiler/swift.vim5
-rw-r--r--compiler/tcl.vim5
-rw-r--r--compiler/tex.vim5
-rw-r--r--compiler/tidy.vim5
-rw-r--r--compiler/typescript.vim5
38 files changed, 190 insertions, 0 deletions
diff --git a/compiler/ant.vim b/compiler/ant.vim
index ddb9e746..a893daaa 100644
--- a/compiler/ant.vim
+++ b/compiler/ant.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/ant.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ant') == -1
" Vim Compiler File
diff --git a/compiler/bdf.vim b/compiler/bdf.vim
index 5bdd9477..04903c2c 100644
--- a/compiler/bdf.vim
+++ b/compiler/bdf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/bdf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'bdf') == -1
" Vim compiler file
diff --git a/compiler/cake.vim b/compiler/cake.vim
index 9cd45dbb..3ebcd187 100644
--- a/compiler/cake.vim
+++ b/compiler/cake.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/cake.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
" Language: CoffeeScript
diff --git a/compiler/cargo.vim b/compiler/cargo.vim
index a8271361..f33a0a4c 100644
--- a/compiler/cargo.vim
+++ b/compiler/cargo.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/cargo.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
" Vim compiler file
diff --git a/compiler/coffee.vim b/compiler/coffee.vim
index d4a112c5..8193a4a5 100644
--- a/compiler/coffee.vim
+++ b/compiler/coffee.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/coffee.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
" Language: CoffeeScript
diff --git a/compiler/credo.vim b/compiler/credo.vim
index 271dc67d..5ad1f452 100644
--- a/compiler/credo.vim
+++ b/compiler/credo.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/credo.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
if exists('current_compiler')
diff --git a/compiler/cryptol.vim b/compiler/cryptol.vim
index d355f188..3dca5026 100644
--- a/compiler/cryptol.vim
+++ b/compiler/cryptol.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/cryptol.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cryptol') == -1
" Vim compiler file
diff --git a/compiler/cs.vim b/compiler/cs.vim
index 4e56feeb..feea9751 100644
--- a/compiler/cs.vim
+++ b/compiler/cs.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/cs.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cs') == -1
" Vim compiler file
diff --git a/compiler/cucumber.vim b/compiler/cucumber.vim
index af5dd4b6..c0ddbc6d 100644
--- a/compiler/cucumber.vim
+++ b/compiler/cucumber.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/cucumber.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
" Vim compiler file
diff --git a/compiler/dot.vim b/compiler/dot.vim
index 30af567d..34be342a 100644
--- a/compiler/dot.vim
+++ b/compiler/dot.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/dot.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dot') == -1
" Vim compiler file
diff --git a/compiler/eruby.vim b/compiler/eruby.vim
index a2957379..5d75d869 100644
--- a/compiler/eruby.vim
+++ b/compiler/eruby.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/eruby.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim compiler file
diff --git a/compiler/exunit.vim b/compiler/exunit.vim
index 09150683..8f6d3112 100644
--- a/compiler/exunit.vim
+++ b/compiler/exunit.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/exunit.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
if exists("current_compiler")
diff --git a/compiler/fish.vim b/compiler/fish.vim
index 87abb8bf..797abcc9 100644
--- a/compiler/fish.vim
+++ b/compiler/fish.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/fish.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1
if exists('current_compiler')
diff --git a/compiler/go.vim b/compiler/go.vim
index a5528cfe..6a83f3dd 100644
--- a/compiler/go.vim
+++ b/compiler/go.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/go.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
" Copyright 2013 The Go Authors. All rights reserved.
diff --git a/compiler/gradle.vim b/compiler/gradle.vim
index 69fa1bb9..aa5b1917 100644
--- a/compiler/gradle.vim
+++ b/compiler/gradle.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/gradle.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1
" Vim Compiler File
diff --git a/compiler/gradlew.vim b/compiler/gradlew.vim
index 0d08ff3e..932ace2c 100644
--- a/compiler/gradlew.vim
+++ b/compiler/gradlew.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/gradlew.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1
" Vim Compiler File
diff --git a/compiler/haml.vim b/compiler/haml.vim
index e942631f..5593c272 100644
--- a/compiler/haml.vim
+++ b/compiler/haml.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/haml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
" Vim compiler file
diff --git a/compiler/ledger.vim b/compiler/ledger.vim
index 8d441af9..f74a27a2 100644
--- a/compiler/ledger.vim
+++ b/compiler/ledger.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/ledger.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ledger') == -1
" Vim Compiler File
diff --git a/compiler/lilypond.vim b/compiler/lilypond.vim
index da1dd17c..986c2781 100644
--- a/compiler/lilypond.vim
+++ b/compiler/lilypond.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/lilypond.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1
" LilyPond compiler file
diff --git a/compiler/ls.vim b/compiler/ls.vim
index 8aed9a68..ab6b1c12 100644
--- a/compiler/ls.vim
+++ b/compiler/ls.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/ls.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'livescript') == -1
" Language: LiveScript
diff --git a/compiler/mix.vim b/compiler/mix.vim
index 9bee88e9..13dd1340 100644
--- a/compiler/mix.vim
+++ b/compiler/mix.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/mix.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
if exists('current_compiler')
diff --git a/compiler/nim.vim b/compiler/nim.vim
index c849b1e9..b15e7221 100644
--- a/compiler/nim.vim
+++ b/compiler/nim.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/nim.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1
if exists('current_compiler')
diff --git a/compiler/nix-build.vim b/compiler/nix-build.vim
index 4ef29d28..9766965a 100644
--- a/compiler/nix-build.vim
+++ b/compiler/nix-build.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/nix-build.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1
if exists('current_compiler')
diff --git a/compiler/ocaml.vim b/compiler/ocaml.vim
index c8fa745e..ad3186d9 100644
--- a/compiler/ocaml.vim
+++ b/compiler/ocaml.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/ocaml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
" Vim Compiler File
diff --git a/compiler/powershell.vim b/compiler/powershell.vim
index 1737a5a5..13e56ddf 100644
--- a/compiler/powershell.vim
+++ b/compiler/powershell.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/powershell.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
" Compiler: powershell
diff --git a/compiler/python.vim b/compiler/python.vim
index eac2bb84..f453919c 100644
--- a/compiler/python.vim
+++ b/compiler/python.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/python.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-compiler') == -1
" Vim compiler file
diff --git a/compiler/rake.vim b/compiler/rake.vim
index 12f7b7a0..05fce7bf 100644
--- a/compiler/rake.vim
+++ b/compiler/rake.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/rake.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim compiler file
diff --git a/compiler/rspec.vim b/compiler/rspec.vim
index 1f7c132f..7b696c8e 100644
--- a/compiler/rspec.vim
+++ b/compiler/rspec.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/rspec.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim compiler file
diff --git a/compiler/ruby.vim b/compiler/ruby.vim
index abdb6d30..4fe2817f 100644
--- a/compiler/ruby.vim
+++ b/compiler/ruby.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/ruby.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim compiler file
diff --git a/compiler/rubyunit.vim b/compiler/rubyunit.vim
index c92f3ec8..862de9dc 100644
--- a/compiler/rubyunit.vim
+++ b/compiler/rubyunit.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/rubyunit.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim compiler file
diff --git a/compiler/rustc.vim b/compiler/rustc.vim
index 14034ae4..f9da25f2 100644
--- a/compiler/rustc.vim
+++ b/compiler/rustc.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/rustc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
" Vim compiler file
diff --git a/compiler/sass.vim b/compiler/sass.vim
index 8ce9dc84..1f066873 100644
--- a/compiler/sass.vim
+++ b/compiler/sass.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/sass.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sass') == -1
" Vim compiler file
diff --git a/compiler/sbt.vim b/compiler/sbt.vim
index a57f58c9..f6333af5 100644
--- a/compiler/sbt.vim
+++ b/compiler/sbt.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/sbt.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
" Vim compiler file
diff --git a/compiler/swift.vim b/compiler/swift.vim
index 5dab34f6..c90b3fa2 100644
--- a/compiler/swift.vim
+++ b/compiler/swift.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/swift.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swift') == -1
" Vim compiler file
diff --git a/compiler/tcl.vim b/compiler/tcl.vim
index 11792a1c..e1d7779e 100644
--- a/compiler/tcl.vim
+++ b/compiler/tcl.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/tcl.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tcl') == -1
" Vim compiler file
diff --git a/compiler/tex.vim b/compiler/tex.vim
index da14b914..6f974124 100644
--- a/compiler/tex.vim
+++ b/compiler/tex.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/tex.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tex') == -1
" Vim compiler file
diff --git a/compiler/tidy.vim b/compiler/tidy.vim
index f13b3664..ba44ce83 100644
--- a/compiler/tidy.vim
+++ b/compiler/tidy.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/tidy.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tidy') == -1
" Vim compiler file
diff --git a/compiler/typescript.vim b/compiler/typescript.vim
index 6d158771..e4860092 100644
--- a/compiler/typescript.vim
+++ b/compiler/typescript.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'compiler/typescript.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
if exists('current_compiler')