Add graphql_javascript_tags, fixes #303

This commit is contained in:
Adam Stankiewicz 2018-05-10 18:59:56 +02:00
parent e2404449e4
commit a26134de3c
2 changed files with 8 additions and 0 deletions

View File

@ -69,3 +69,7 @@ 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

View File

@ -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