summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index bb28828c..ccbd2fa4 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -69,6 +69,10 @@ augroup filetypedetect
autocmd BufNewFile,BufRead *.swift set filetype=swift
augroup END
+" Fix for https://github.com/sheerun/vim-polyglot/issues/236#issuecomment-387984954
+if (!exists('g:graphql_javascript_tags'))
+ let g:graphql_javascript_tags = ['gql', 'graphql', 'Relay.QL']
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'apiblueprint') == -1
augroup filetypedetect
" apiblueprint, from apiblueprint.vim in sheerun/apiblueprint.vim