changeset 36077:ca0e3fd78ffc

runtime(nu): include filetype plugin Commit: https://github.com/vim/vim/commit/9abd02d16ad08e61729fe08d909c87915239affb Author: Marc Jakobi <marc.jakobi@tiko.energy> Date: Sun Sep 1 09:21:16 2024 +0200 runtime(nu): include filetype plugin 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>
author Christian Brabandt <cb@256bit.org>
date Sun, 01 Sep 2024 09:30:07 +0200
parents a45df88ff91f
children a3327f2c614b
files .github/MAINTAINERS runtime/ftplugin/nu.vim
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -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
new file mode 100644
--- /dev/null
+++ b/runtime/ftplugin/nu.vim
@@ -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<'