2024-05-19 09:57:01 +02:00
|
|
|
" Vim filetype plugin
|
|
|
|
|
" Language: graphql
|
2024-12-23 11:12:58 +01:00
|
|
|
" Maintainer: Jon Parise <jon@indelible.org>
|
|
|
|
|
" Filenames: *.graphql *.graphqls *.gql
|
|
|
|
|
" URL: https://github.com/jparise/vim-graphql
|
|
|
|
|
" License: MIT <https://opensource.org/license/mit>
|
|
|
|
|
" Last Change: 2024 Dec 21
|
2026-06-29 07:31:28 +08:00
|
|
|
" 2026 Jun 27 by Vim Project (add recommended style guard)
|
2024-05-19 09:57:01 +02:00
|
|
|
|
|
|
|
|
if exists('b:did_ftplugin')
|
|
|
|
|
finish
|
|
|
|
|
endif
|
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
|
|
2024-12-23 11:12:58 +01:00
|
|
|
setlocal comments=:#
|
|
|
|
|
setlocal commentstring=#\ %s
|
|
|
|
|
setlocal formatoptions-=t
|
|
|
|
|
setlocal iskeyword+=$,@-@
|
2026-06-29 07:31:28 +08:00
|
|
|
if get(g:, 'graphql_recommended_style',
|
|
|
|
|
\ get(g:, 'filetype_recommended_style', 1))
|
|
|
|
|
setlocal softtabstop=2
|
|
|
|
|
setlocal shiftwidth=2
|
|
|
|
|
setlocal expandtab
|
|
|
|
|
endif
|
2024-05-19 09:57:01 +02:00
|
|
|
|
2024-12-23 11:12:58 +01:00
|
|
|
let b:undo_ftplugin = 'setlocal com< cms< fo< isk< sts< sw< et<'
|