]> git.notmuchmail.org Git - notmuch/blob - vim/syntax/notmuch-show.vim
Add new notmuch vim plugin
[notmuch] / vim / syntax / notmuch-show.vim
1 " notmuch show mode syntax file
2
3 syntax cluster nmShowMsgDesc contains=nmShowMsgDescWho,nmShowMsgDescDate,nmShowMsgDescTags
4 syntax match   nmShowMsgDescWho /[^)]\+)/ contained
5 syntax match   nmShowMsgDescDate / ([^)]\+[0-9]) / contained
6 syntax match   nmShowMsgDescTags /([^)]\+)$/ contained
7
8 syntax cluster nmShowMsgHead contains=nmShowMsgHeadKey,nmShowMsgHeadVal
9 syntax match   nmShowMsgHeadKey /^[^:]\+: / contained
10 syntax match   nmShowMsgHeadVal /^\([^:]\+: \)\@<=.*/ contained
11
12 syntax cluster nmShowMsgBody contains=@nmShowMsgBodyMail,@nmShowMsgBodyGit
13 syntax include @nmShowMsgBodyMail syntax/mail.vim
14
15 silent! syntax include @nmShowMsgBodyGit syntax/notmuch-git-diff.vim
16
17 highlight nmShowMsgDescWho term=reverse cterm=reverse gui=reverse
18 highlight link nmShowMsgDescDate Type
19 highlight link nmShowMsgDescTags String
20
21 highlight link nmShowMsgHeadKey  Macro
22 "highlight link nmShowMsgHeadVal  NONE
23
24 highlight Folded term=reverse ctermfg=LightGrey ctermbg=Black guifg=LightGray guibg=Black