]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(nu): include filetype plugin
authorMarc Jakobi <marc.jakobi@tiko.energy>
Sun, 1 Sep 2024 07:21:16 +0000 (09:21 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 1 Sep 2024 07:21:16 +0000 (09:21 +0200)
This is used to set the commentstring option.

closes: #15601

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Marc Jakobi <marc.jakobi@tiko.energy>
.github/MAINTAINERS
runtime/ftplugin/nu.vim [new file with mode: 0644]

index 38ab30049eac4e2f2a6cd058ca5dca60a90c9545..9c2923fc3a4313e7e88c31750ba83d42ef709b3e 100644 (file)
@@ -213,6 +213,7 @@ runtime/ftplugin/nginx.vim          @chr4
 runtime/ftplugin/nim.vim               @ribru17
 runtime/ftplugin/nroff.vim             @a-vrma
 runtime/ftplugin/nsis.vim              @k-takata
+runtime/ftplugin/nu.vim                @mrcjkb
 runtime/ftplugin/octave.vim            @dkearns
 runtime/ftplugin/ondir.vim             @jparise
 runtime/ftplugin/openvpn.vim           @ObserverOfTime
diff --git a/runtime/ftplugin/nu.vim b/runtime/ftplugin/nu.vim
new file mode 100644 (file)
index 0000000..9efbc3b
--- /dev/null
@@ -0,0 +1,13 @@
+" Vim filetype plugin
+" Language:    Nu
+" Maintainer:  Marc Jakobi <marc@jakobi.dev>
+" Last Change: 2024 Aug 31
+
+if exists('b:did_ftplugin')
+  finish
+endif
+let b:did_ftplugin = 1
+
+setlocal commentstring=#\ %s
+
+let b:undo_ftplugin = 'setl com<'