summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
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