summaryrefslogtreecommitdiff
path: root/mnv/runtime/ftplugin/graphql.mnv
diff options
context:
space:
mode:
Diffstat (limited to 'mnv/runtime/ftplugin/graphql.mnv')
-rw-r--r--mnv/runtime/ftplugin/graphql.mnv22
1 files changed, 22 insertions, 0 deletions
diff --git a/mnv/runtime/ftplugin/graphql.mnv b/mnv/runtime/ftplugin/graphql.mnv
new file mode 100644
index 0000000000..96d78fa0c6
--- /dev/null
+++ b/mnv/runtime/ftplugin/graphql.mnv
@@ -0,0 +1,22 @@
+" MNV filetype plugin
+" Language: graphql
+" Maintainer: Jon Parise <jon@indelible.org>
+" Filenames: *.graphql *.graphqls *.gql
+" URL: https://github.com/jparise/mnv-graphql
+" License: MIT <https://opensource.org/license/mit>
+" Last Change: 2024 Dec 21
+
+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<'