mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-15 08:09:11 +08:00
feat(gitter): highlight remote nick
This commit is contained in:
parent
3f214bdd6d
commit
5b0495059d
@ -252,6 +252,8 @@ function! s:windowsinit() abort
|
||||
setl nofoldenable
|
||||
setl cursorline
|
||||
setl filetype=vimchat
|
||||
setl concealcursor=nivc
|
||||
setl conceallevel=2
|
||||
endfunction
|
||||
|
||||
let s:enter_history = []
|
||||
|
@ -1,7 +1,6 @@
|
||||
" syn match vimChatMsg /^\[\d\d\(:\d\d\)\{0,2\}].\{-}:/ contains=vimChatTime,vimChatMe
|
||||
" syn match vimChatTime /\[\d\d\(:\d\d\)\{0,2\}]/ contained nextgroup=vimChatMe
|
||||
" syn match vimChatMe /Me:/ contained
|
||||
"
|
||||
" Comment, Type, String, Statement
|
||||
" hi link vimChatMsg Comment
|
||||
" hi link vimChatTime String
|
||||
@ -10,7 +9,11 @@
|
||||
syn match VimChatTime /\[\d\d\d\d-\d\d-\d\d\s\d\d\:\d\d]/
|
||||
syn match VimChatVert /│/
|
||||
syn match VimChatNick /\[\d\d\d\d-\d\d-\d\d\s\d\d\:\d\d]\s│[^│]*│/ contains=VimChatTime,VimChatVert
|
||||
syntax match VimChatRemoteNickL /**`/ conceal
|
||||
syntax match VimChatRemoteNickR /`\*\*/ conceal
|
||||
syntax match VimChatRemoteNick /**`[^`]*`\*\*/ contains=VimChatRemoteNickR,VimChatRemoteNickL
|
||||
" hi def link vimChatMsg Comment
|
||||
hi def link VimChatTime Comment
|
||||
hi def link VimChatNick Type
|
||||
hi def link VimChatVert VertSplit
|
||||
hi def link VimChatRemoteNick Todo
|
||||
|
Loading…
x
Reference in New Issue
Block a user