diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2018-05-10 18:59:56 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2018-05-10 18:59:56 +0200 |
commit | a26134de3c09f9725667e14e7073a701bcff4e19 (patch) | |
tree | b8b33bca81c7690b179f7e13ac4c6232c11c4377 | |
parent | e2404449e4f961c5e6c0e2689078612b36d776c2 (diff) | |
download | vim-polyglot-a26134de3c09f9725667e14e7073a701bcff4e19.tar.gz vim-polyglot-a26134de3c09f9725667e14e7073a701bcff4e19.zip |
Add graphql_javascript_tags, fixes #303
-rw-r--r-- | config.vim | 4 | ||||
-rw-r--r-- | ftdetect/polyglot.vim | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -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 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 |