This MR adds the ability to view, add, and delete emojis from notes and comments. This action can be performed by default with the `Ea` (emoji add) keybinding, and the `Ed` (emoji delete) keybinding. Only emojis added by the current user are eligible for deletion. The MR also implements a popup functionality which shows the user who added emojis on hover. Implements #179
20 lines
569 B
VimL
20 lines
569 B
VimL
if filereadable($VIMRUNTIME . '/syntax/markdown.vim')
|
|
source $VIMRUNTIME/syntax/markdown.vim
|
|
endif
|
|
|
|
syntax match Username "@\S*"
|
|
syntax match Date "\v\d+\s+\w+\s+ago"
|
|
syntax match ChevronDown ""
|
|
syntax match ChevronRight ""
|
|
syntax match Resolved /\s✓\s\?/
|
|
syntax match Unresolved /\s-\s\?/
|
|
|
|
highlight link Username GitlabUsername
|
|
highlight link Date GitlabDate
|
|
highlight link ChevronDown GitlabChevron
|
|
highlight link ChevronRight GitlabChevron
|
|
highlight link Resolved GitlabResolved
|
|
highlight link Unresolved GitlabUnresolved
|
|
|
|
let b:current_syntax = "gitlab"
|