neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit f35d5afbf1bae81896d4b959c7d99cf50e0c306f
parent 7031949be065870f0daf74a9f1be3df47f83312c
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Wed,  7 Aug 2024 22:06:05 +0200

vim-patch:39eff4c: runtime(proto): Add indent script for protobuf filetype

closes: vim/vim#15446

https://github.com/vim/vim/commit/39eff4cdc055a0f0db0d32fcf7a74fe30ea54f25

Co-authored-by: David Pedersen <limero@me.com>

Diffstat:
Aruntime/indent/proto.vim | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/runtime/indent/proto.vim b/runtime/indent/proto.vim @@ -0,0 +1,19 @@ +" Vim indent file +" Language: Protobuf +" Maintainer: David Pedersen <limero@me.com> +" Last Change: 2024 Aug 07 + +" Only load this indent file when no other was loaded. +if exists("b:did_indent") + finish +endif +let b:did_indent = 1 + +" Protobuf is like indenting C +setlocal cindent +setlocal expandtab +setlocal shiftwidth=2 + +let b:undo_indent = "setlocal cindent< expandtab< shiftwidth<" + +" vim: sw=2 sts=2 et