2019-03-04 03:28:35 -05:00
|
|
|
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'protobuf') != -1
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2016-06-26 12:03:28 -04:00
|
|
|
" Vim indent file
|
|
|
|
" Language: Protobuf
|
|
|
|
" Maintainer: Johannes Zellner <johannes@zellner.org>
|
|
|
|
" Last Change: Fri, 15 Mar 2002 07:53:54 CET
|
|
|
|
|
|
|
|
" 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 = "setl cin<"
|