diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 16:29:56 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 16:29:56 +0200 |
commit | 556c56d185fcc7d5cc6d51ea9a6453bcd4f7116c (patch) | |
tree | f97d9f0cdf9df718aaf1a04eed16819a84a5bab2 /autoload/graphql.vim | |
parent | fe84062992e12dea8e090e647afa6b314e891f73 (diff) | |
download | vim-polyglot-556c56d185fcc7d5cc6d51ea9a6453bcd4f7116c.tar.gz vim-polyglot-556c56d185fcc7d5cc6d51ea9a6453bcd4f7116c.zip |
Add graphql support, closes #298
Diffstat (limited to 'autoload/graphql.vim')
-rw-r--r-- | autoload/graphql.vim | 16 |
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 |