diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-12-09 20:36:34 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2024-12-10 08:06:35 +0100 |
commit | c3899419d429c2b2ae05fe90ef349c3a80931e17 (patch) | |
tree | 16cfcbcfbddf7e6ed8535ea7a98ccb8cdb9a31e3 | |
parent | d1fd674df3eb07049c780d6b7821e17d471fdc4c (diff) | |
download | rneovim-c3899419d429c2b2ae05fe90ef349c3a80931e17.tar.gz rneovim-c3899419d429c2b2ae05fe90ef349c3a80931e17.tar.bz2 rneovim-c3899419d429c2b2ae05fe90ef349c3a80931e17.zip |
vim-patch:ad4764f: runtime(proto): include filetype plugin for protobuf
closes: vim/vim#16199
https://github.com/vim/vim/commit/ad4764f65b678938c1b252245e1af1ae150fbce8
Co-authored-by: David Pedersen <limero@me.com>
-rw-r--r-- | runtime/ftplugin/proto.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/ftplugin/proto.vim b/runtime/ftplugin/proto.vim new file mode 100644 index 0000000000..585f4461d3 --- /dev/null +++ b/runtime/ftplugin/proto.vim @@ -0,0 +1,18 @@ +" Vim filetype plugin +" Language: Protobuf +" Maintainer: David Pedersen <limero@me.com> +" 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 |