summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorDan Reif <dan.reif@collectivehealth.com>2018-05-08 10:28:33 -0700
committerDan Reif <dan.reif@collectivehealth.com>2018-05-08 10:28:33 -0700
commite2404449e4f961c5e6c0e2689078612b36d776c2 (patch)
tree5e6dc545006d2beeeea37395d56a87f6d02e8a51 /ftdetect
parentdc8b2f45deb7e0d139f1fe01881faa1b676d043f (diff)
downloadvim-polyglot-e2404449e4f961c5e6c0e2689078612b36d776c2.tar.gz
vim-polyglot-e2404449e4f961c5e6c0e2689078612b36d776c2.zip
Merge pull request #301 from timfeirg:feature/graphql
Diffstat (limited to '')
-rw-r--r--ftdetect/polyglot.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 0619d65f..bb28828c 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -362,6 +362,13 @@ au BufRead,BufNewFile *.tmpl set filetype=gohtmltmpl
augroup end
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
+ augroup filetypedetect
+ " graphql, from graphql.vim in jparise/vim-graphql
+au BufRead,BufNewFile *.graphql,*.graphqls,*.gql setfiletype graphql
+ augroup end
+endif
+
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
augroup filetypedetect
" haml, from haml.vim in sheerun/vim-haml