graphql.vim 553 B

1234567891011121314151617181920212223
  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. if exists('b:did_ftplugin')
  9. finish
  10. endif
  11. let b:did_ftplugin = 1
  12. setlocal comments=:#
  13. setlocal commentstring=#\ %s
  14. setlocal formatoptions-=t
  15. setlocal iskeyword+=$,@-@
  16. setlocal softtabstop=2
  17. setlocal shiftwidth=2
  18. setlocal expandtab
  19. let b:undo_ftplugin = 'setlocal com< cms< fo< isk< sts< sw< et<'