mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 10:40:04 +08:00
feat(vimchat): update syntax highlight for message
This commit is contained in:
parent
9484ac6fb9
commit
ba1a0f80ac
@ -7,7 +7,7 @@ The chatting client for vim and neovim. This plugin is based on [SpaceVim](https
|
|||||||
<!-- vim-markdown-toc GFM -->
|
<!-- vim-markdown-toc GFM -->
|
||||||
|
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [Feedback & Contribut](#feedback--contribut)
|
- [Feedback & Contribute](#feedback--contribute)
|
||||||
|
|
||||||
<!-- vim-markdown-toc -->
|
<!-- vim-markdown-toc -->
|
||||||
|
|
||||||
@ -34,6 +34,6 @@ and create your own key binding:
|
|||||||
nnoremap <silent> <Leader>h :call chat#windows#open()<Cr>
|
nnoremap <silent> <Leader>h :call chat#windows#open()<Cr>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Feedback & Contribut
|
## Feedback & Contribute
|
||||||
|
|
||||||
The development of vim-chat is in SpaceVim repository, including the SpaceVim api and [bundle/vim-chat](https://github.com/SpaceVim/SpaceVim/tree/master/bundle/vim-chat)
|
The development of vim-chat is in SpaceVim repository, including the SpaceVim api and [bundle/vim-chat](https://github.com/SpaceVim/SpaceVim/tree/master/bundle/vim-chat)
|
||||||
|
@ -9,7 +9,9 @@
|
|||||||
syn match VimChatTime /\[\d\d\d\d-\d\d-\d\d\s\d\d\:\d\d]/
|
syn match VimChatTime /\[\d\d\d\d-\d\d-\d\d\s\d\d\:\d\d]/
|
||||||
syn match VimChatVert /│/
|
syn match VimChatVert /│/
|
||||||
syn match VimChatNick /\[\d\d\d\d-\d\d-\d\d\s\d\d\:\d\d]\s│[^│]*│/ contains=VimChatTime,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 VimChatCodeBlock /`[^`]*`/
|
||||||
|
syntax match VimChatRemoteNickL /\*\*`/ conceal
|
||||||
syntax match VimChatRemoteNickR /`\*\*/ conceal
|
syntax match VimChatRemoteNickR /`\*\*/ conceal
|
||||||
syntax match VimChatRemoteNick /**`[^`]*`\*\*/ contains=VimChatRemoteNickR,VimChatRemoteNickL
|
syntax match VimChatRemoteNick /**`[^`]*`\*\*/ contains=VimChatRemoteNickR,VimChatRemoteNickL
|
||||||
syntax match VimChatPing /\s\zs@\S*/
|
syntax match VimChatPing /\s\zs@\S*/
|
||||||
@ -19,3 +21,4 @@ hi def link VimChatNick Type
|
|||||||
hi def link VimChatVert VertSplit
|
hi def link VimChatVert VertSplit
|
||||||
hi def link VimChatRemoteNick Todo
|
hi def link VimChatRemoteNick Todo
|
||||||
hi def link VimChatPing ModeMsg
|
hi def link VimChatPing ModeMsg
|
||||||
|
hi def link VimChatCodeBlock String
|
||||||
|
Loading…
Reference in New Issue
Block a user