vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

graphql.vim (715B)


      1 " Vim filetype plugin
      2 " Language:	graphql
      3 " Maintainer:	Jon Parise <jon@indelible.org>
      4 " Filenames:	*.graphql *.graphqls *.gql
      5 " URL:		https://github.com/jparise/vim-graphql
      6 " License:	MIT <https://opensource.org/license/mit>
      7 " Last Change:	2024 Dec 21
      8 "		2026 Jun 27 by Vim Project (add recommended style guard)
      9 
     10 if exists('b:did_ftplugin')
     11   finish
     12 endif
     13 let b:did_ftplugin = 1
     14 
     15 setlocal comments=:#
     16 setlocal commentstring=#\ %s
     17 setlocal formatoptions-=t
     18 setlocal iskeyword+=$,@-@
     19 if get(g:, 'graphql_recommended_style',
     20       \ get(g:, 'filetype_recommended_style', 1))
     21   setlocal softtabstop=2
     22   setlocal shiftwidth=2
     23   setlocal expandtab
     24 endif
     25 
     26 let b:undo_ftplugin = 'setlocal com< cms< fo< isk< sts< sw< et<'