summaryrefslogtreecommitdiffstats
path: root/ftplugin/graphql.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/graphql.vim')
-rw-r--r--ftplugin/graphql.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/ftplugin/graphql.vim b/ftplugin/graphql.vim
index 524be44c..5a4aabb5 100644
--- a/ftplugin/graphql.vim
+++ b/ftplugin/graphql.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/graphql.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, 'graphql') == -1
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>