mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 20:20:05 +08:00
b448b0a40f
Impore the git transtate key binding, and add a plugin for view git log.
19 lines
540 B
VimL
19 lines
540 B
VimL
if exists('b:current_syntax') && b:current_syntax ==# 'SpaceVimGitLogPopup'
|
|
finish
|
|
endif
|
|
let b:current_syntax = 'SpaceVimGitLogPopup'
|
|
syntax case ignore
|
|
|
|
" option title
|
|
syn match GitLogPopupTitle /^[A-Z].*/
|
|
" key binding
|
|
syn match GitLogKey /\ [-=]\?[a-zA-Z]\ /
|
|
" desc
|
|
syn match GitLogDesc /\(\ [-=]\?[a-zA-Z]\ \)\@<=[A-Z][a-z]*\s\([a-zA-Z-]\+\s\)*\([a-zA-Z]\)\+/
|
|
syn match GitLogOption /\((\)\@<=[^(^)]*/
|
|
hi def link GitLogPopupTitle ModeMsg
|
|
hi def link GitLogKey Type
|
|
hi def link GitLogDesc Identifier
|
|
hi def link GitLogOption Comment
|
|
|