diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 16:29:56 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 16:29:56 +0200 |
commit | 556c56d185fcc7d5cc6d51ea9a6453bcd4f7116c (patch) | |
tree | f97d9f0cdf9df718aaf1a04eed16819a84a5bab2 /ftplugin | |
parent | fe84062992e12dea8e090e647afa6b314e891f73 (diff) | |
download | vim-polyglot-556c56d185fcc7d5cc6d51ea9a6453bcd4f7116c.tar.gz vim-polyglot-556c56d185fcc7d5cc6d51ea9a6453bcd4f7116c.zip |
Add graphql support, closes #298
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/graphql.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ftplugin/graphql.vim b/ftplugin/graphql.vim new file mode 100644 index 00000000..7734acee --- /dev/null +++ b/ftplugin/graphql.vim @@ -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<' |