2019-03-04 03:28:35 -05:00
|
|
|
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2018-05-08 13:28:33 -04:00
|
|
|
" 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+=$,@-@
|
2018-06-05 16:50:18 -04:00
|
|
|
setlocal softtabstop=2
|
|
|
|
setlocal shiftwidth=2
|
|
|
|
setlocal expandtab
|
2018-05-08 13:28:33 -04:00
|
|
|
|
2019-03-04 03:15:44 -05:00
|
|
|
let b:undo_ftplugin = 'setlocal com< cms< fo< isk< sts< sw< et<'
|