summaryrefslogtreecommitdiff
path: root/.vim/ftdetect
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2020-11-19 12:25:13 +0100
committerTobias Klauser <tklauser@distanz.ch>2020-11-19 12:25:13 +0100
commit013fe09094eb8c534a75d28c430fab910c6c5b76 (patch)
tree3786e9d04932af028c150053b5c7a8054e58b88e /.vim/ftdetect
parent3cc8d5930f2f2b137c512303105e3850d52cfa98 (diff)
Add protobuf syntax highlighting
Based on https://github.com/protocolbuffers/protobuf/blob/3cff48db79bd903b2382492e166079fe708be6b1/editors/proto.vim
Diffstat (limited to '.vim/ftdetect')
-rw-r--r--.vim/ftdetect/proto.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/.vim/ftdetect/proto.vim b/.vim/ftdetect/proto.vim
new file mode 100644
index 0000000..2b6bdbc
--- /dev/null
+++ b/.vim/ftdetect/proto.vim
@@ -0,0 +1,3 @@
+augroup filetype
+ au! BufRead,BufNewFile *.proto setfiletype proto
+augroup end