1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:20:05 +08:00

feat(vimchat): update syntax highlight for message

This commit is contained in:
wsdjeg 2022-05-02 12:24:26 +08:00
parent 9484ac6fb9
commit ba1a0f80ac
2 changed files with 6 additions and 3 deletions

View File

@ -7,7 +7,7 @@ The chatting client for vim and neovim. This plugin is based on [SpaceVim](https
<!-- vim-markdown-toc GFM -->
- [Usage](#usage)
- [Feedback & Contribut](#feedback--contribut)
- [Feedback & Contribute](#feedback--contribute)
<!-- vim-markdown-toc -->
@ -34,6 +34,6 @@ and create your own key binding:
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)

View File

@ -9,7 +9,9 @@
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 VimChatCodeBlock /`[^`]*`/
syntax match VimChatRemoteNickL /\*\*`/ conceal
syntax match VimChatRemoteNickR /`\*\*/ conceal
syntax match VimChatRemoteNick /**`[^`]*`\*\*/ contains=VimChatRemoteNickR,VimChatRemoteNickL
syntax match VimChatPing /\s\zs@\S*/
@ -19,3 +21,4 @@ hi def link VimChatNick Type
hi def link VimChatVert VertSplit
hi def link VimChatRemoteNick Todo
hi def link VimChatPing ModeMsg
hi def link VimChatCodeBlock String