summaryrefslogtreecommitdiffstats
path: root/ftplugin/graphql.vim
diff options
context:
space:
mode:
authorDan Reif <dan.reif@collectivehealth.com>2018-05-08 10:28:33 -0700
committerDan Reif <dan.reif@collectivehealth.com>2018-05-08 10:28:33 -0700
commite2404449e4f961c5e6c0e2689078612b36d776c2 (patch)
tree5e6dc545006d2beeeea37395d56a87f6d02e8a51 /ftplugin/graphql.vim
parentdc8b2f45deb7e0d139f1fe01881faa1b676d043f (diff)
downloadvim-polyglot-e2404449e4f961c5e6c0e2689078612b36d776c2.tar.gz
vim-polyglot-e2404449e4f961c5e6c0e2689078612b36d776c2.zip
Merge pull request #301 from timfeirg:feature/graphql
Diffstat (limited to 'ftplugin/graphql.vim')
-rw-r--r--ftplugin/graphql.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/ftplugin/graphql.vim b/ftplugin/graphql.vim
new file mode 100644
index 00000000..42d96e6c
--- /dev/null
+++ b/ftplugin/graphql.vim
@@ -0,0 +1,17 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
+
+" 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+=$,@-@
+
+endif