summaryrefslogtreecommitdiff
path: root/mnv/runtime/ftplugin/jsonnet.mnv
diff options
context:
space:
mode:
Diffstat (limited to 'mnv/runtime/ftplugin/jsonnet.mnv')
-rw-r--r--mnv/runtime/ftplugin/jsonnet.mnv17
1 files changed, 17 insertions, 0 deletions
diff --git a/mnv/runtime/ftplugin/jsonnet.mnv b/mnv/runtime/ftplugin/jsonnet.mnv
new file mode 100644
index 0000000000..d9b8cbc9f2
--- /dev/null
+++ b/mnv/runtime/ftplugin/jsonnet.mnv
@@ -0,0 +1,17 @@
+" MNV filetype plugin
+" Language: Jsonnet
+" Maintainer: Cezary Drożak <cezary@drozak.net>
+" URL: https://github.com/google/mnv-jsonnet
+" Last Change: 2022-09-08
+
+" Only do this when not done yet for this buffer
+if exists("b:did_ftplugin")
+ finish
+endif
+
+" Don't load another plugin for this buffer
+let b:did_ftplugin = 1
+
+setlocal commentstring=//\ %s
+
+let b:undo_ftplugin = "setlocal commentstring<"