Add graphql support, closes #298

This commit is contained in:
Adam Stankiewicz
2019-09-04 16:29:56 +02:00
parent fe84062992
commit 556c56d185
10 changed files with 293 additions and 1 deletions

22
ftplugin/graphql.vim Normal file
View File

@@ -0,0 +1,22 @@
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1
finish
endif
" Vim filetype plugin
" Language: GraphQL
" Maintainer: Jon Parise <jon@indelible.org>
if (exists('b:did_ftplugin'))
finish
endif
let b:did_ftplugin = 1
setlocal comments=:#
setlocal commentstring=#\ %s
setlocal formatoptions-=t
setlocal iskeyword+=$,@-@
setlocal softtabstop=2
setlocal shiftwidth=2
setlocal expandtab
let b:undo_ftplugin = 'setlocal com< cms< fo< isk< sts< sw< et<'