summaryrefslogtreecommitdiffstats
path: root/autoload/xml
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/xml')
-rw-r--r--autoload/xml/aria.vim5
-rw-r--r--autoload/xml/html5.vim5
-rw-r--r--autoload/xml/xsd.vim5
3 files changed, 15 insertions, 0 deletions
diff --git a/autoload/xml/aria.vim b/autoload/xml/aria.vim
index 4fbd25d9..1cd801fe 100644
--- a/autoload/xml/aria.vim
+++ b/autoload/xml/aria.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'autoload/xml/aria.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, 'html5') == -1
" Vim completion for WAI-ARIA data file
diff --git a/autoload/xml/html5.vim b/autoload/xml/html5.vim
index a20fd4f9..6e526be6 100644
--- a/autoload/xml/html5.vim
+++ b/autoload/xml/html5.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'autoload/xml/html5.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, 'html5') == -1
" Vim completion for HTML5 data file
diff --git a/autoload/xml/xsd.vim b/autoload/xml/xsd.vim
index 572581a1..ad3630da 100644
--- a/autoload/xml/xsd.vim
+++ b/autoload/xml/xsd.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'autoload/xml/xsd.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, 'xsd') == -1
" Author: Thomas Barthel