From a26134de3c09f9725667e14e7073a701bcff4e19 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 10 May 2018 18:59:56 +0200 Subject: Add graphql_javascript_tags, fixes #303 --- ftdetect/polyglot.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftdetect') 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 -- cgit v1.2.3