diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 16:29:56 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 16:29:56 +0200 |
commit | 556c56d185fcc7d5cc6d51ea9a6453bcd4f7116c (patch) | |
tree | f97d9f0cdf9df718aaf1a04eed16819a84a5bab2 /ftdetect | |
parent | fe84062992e12dea8e090e647afa6b314e891f73 (diff) | |
download | vim-polyglot-556c56d185fcc7d5cc6d51ea9a6453bcd4f7116c.tar.gz vim-polyglot-556c56d185fcc7d5cc6d51ea9a6453bcd4f7116c.zip |
Add graphql support, closes #298
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index af4d6941..7e3dc45f 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -505,6 +505,14 @@ unlet s:cpo_save augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 + augroup filetypedetect + " graphql, from graphql.vim in jparise/vim-graphql:_ALL +" vint: -ProhibitAutocmdWithNoGroup +au BufRead,BufNewFile *.graphql,*.graphqls,*.gql setfiletype graphql + augroup end +endif + if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1 augroup filetypedetect " gradle, from gradle.vim in tfnico/vim-gradle |