runtime(proto): include filetype plugin for protobuf
Commit:
https://github.com/vim/vim/commit/ad4764f65b678938c1b252245e1af1ae150fbce8
Author: David Pedersen <[email protected]>
Date: Mon Dec 9 19:56:34 2024 +0100
runtime(proto): include filetype plugin for protobuf
closes: https://github.com/vim/vim/issues/16199
Signed-off-by: David Pedersen <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS
index 50755e1a6..cc054c293 100644
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -247,6 +247,7 @@ runtime/ftplugin/pod.vim @petdance @dkearns
runtime/ftplugin/poefilter.vim @ObserverOfTime
runtime/ftplugin/postscr.vim @mrdubya
runtime/ftplugin/prisma.vim @ribru17
+runtime/ftplugin/proto.vim @Limero
runtime/ftplugin/ps1.vim @heaths
runtime/ftplugin/ps1xml.vim @heaths
runtime/ftplugin/ptx.vim @jiangyinzuo
diff --git a/runtime/ftplugin/proto.vim b/runtime/ftplugin/proto.vim
new file mode 100644
index 000000000..585f4461d
--- /dev/null
+++ b/runtime/ftplugin/proto.vim
@@ -0,0 +1,18 @@
+" Vim filetype plugin
+" Language: Protobuf
+" Maintainer: David Pedersen <[email protected]>
+" Last Change: 2024 Dec 09
+
+if exists('b:did_ftplugin')
+ finish
+endif
+let b:did_ftplugin = 1
+
+setlocal formatoptions-=t formatoptions+=croql
+
+setlocal comments=s1:/*,mb:*,ex:*/,://
+setlocal commentstring=//\ %s
+
+let b:undo_ftplugin = "setlocal formatoptions< comments< commentstring<"
+
+" vim: sw=2 sts=2 et
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1tKizH-002aNo-Lf%40256bit.org.