From e2404449e4f961c5e6c0e2689078612b36d776c2 Mon Sep 17 00:00:00 2001 From: Dan Reif Date: Tue, 8 May 2018 10:28:33 -0700 Subject: Merge pull request #301 from timfeirg:feature/graphql --- ftdetect/polyglot.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ftdetect') 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 -- cgit v1.2.3