summaryrefslogtreecommitdiffstats
path: root/ftplugin/graphql.vim
diff options
context:
space:
mode:
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