summaryrefslogtreecommitdiffstats
path: root/autoload/graphql.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-09-04 16:29:56 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-09-04 16:29:56 +0200
commit556c56d185fcc7d5cc6d51ea9a6453bcd4f7116c (patch)
treef97d9f0cdf9df718aaf1a04eed16819a84a5bab2 /autoload/graphql.vim
parentfe84062992e12dea8e090e647afa6b314e891f73 (diff)
downloadvim-polyglot-556c56d185fcc7d5cc6d51ea9a6453bcd4f7116c.tar.gz
vim-polyglot-556c56d185fcc7d5cc6d51ea9a6453bcd4f7116c.zip
Add graphql support, closes #298
Diffstat (limited to 'autoload/graphql.vim')
-rw-r--r--autoload/graphql.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/autoload/graphql.vim b/autoload/graphql.vim
new file mode 100644
index 00000000..cce43556
--- /dev/null
+++ b/autoload/graphql.vim
@@ -0,0 +1,16 @@
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1
+ finish
+endif
+
+" Vim plugin
+" Language: GraphQL
+" Maintainer: Jon Parise <jon@indelible.org>
+
+if exists('g:autoloaded_graphql')
+ finish
+endif
+let g:autoloaded_graphql = 1
+
+function! graphql#javascript_tags() abort
+ return get(g:, 'graphql_javascript_tags', ['gql', 'graphql', 'Relay.QL'])
+endfunction