feat(git): add git module and replace vim-flog with :Glog

This commit is contained in:
2026-04-13 21:40:52 +02:00
parent 144b2ffd43
commit 959cec7051
8 changed files with 337 additions and 24 deletions
+20
View File
@@ -0,0 +1,20 @@
syntax match gitlogGraph contained /^[*|\\\/_ ]*/
\ nextgroup=gitlogHash
syntax match gitlogHash contained /\<\x\{7,40\}\>/
\ nextgroup=gitlogDate skipwhite
syntax match gitlogDate contained /\<\d\{4}-\d\{2}-\d\{2}\>/
\ nextgroup=gitlogAuthor skipwhite
syntax match gitlogAuthor contained /{[^}]\+}/
\ nextgroup=gitlogRef skipwhite
syntax match gitlogRef contained /([^)]\+)/
syntax match gitlogLine
\ /^[*|\\\/_ ]*\x\{7,40}\s\+\d\{4}-\d\{2}-\d\{2}\s\+{[^}]\+}.*/
\ contains=gitlogGraph
syntax match gitlogGraphLine /^[*|\\\/_ ]\+$/
\ contains=gitlogGraph
highlight default link gitlogGraph Comment
highlight default link gitlogHash Identifier
highlight default link gitlogDate Number
highlight default link gitlogAuthor String
highlight default link gitlogRef Constant