commit 195eca94d4dc98ee4b8aff4ad70b6e9e1042d88e
parent 9762c5e3406cab8152d8dd161c0178965d841676
Author: Christian Clason <c.clason@uni-graz.at>
Date: Sun, 1 Sep 2024 11:15:34 +0200
vim-patch:9abd02d: runtime(nu): include filetype plugin
This is used to set the commentstring option.
closes: vim/vim#15601
https://github.com/vim/vim/commit/9abd02d16ad08e61729fe08d909c87915239affb
Co-authored-by: Marc Jakobi <marc.jakobi@tiko.energy>
Diffstat:
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/runtime/ftplugin/nu.vim 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<'