Skip to content

Commit

Permalink
Add support for git-messenger.vim, close cocopon#45
Browse files Browse the repository at this point in the history
  • Loading branch information
cocopon committed Apr 19, 2019
1 parent 8b5ca00 commit 24fd10b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ information.
/ [Denite][denite]
/ [EasyMotion][easymotion]
/ [Git Gutter][git-gutter]
/ [git-messenger.vim][git-messenger.vim]
/ [Signify][signify]
/ [Sneak][sneak]
/ [Startify][startify]
Expand Down Expand Up @@ -106,6 +107,7 @@ MIT License. See `LICENSE.txt` for more information.
[denite]:https://github.com/Shougo/denite.nvim
[easymotion]:https://github.com/easymotion/vim-easymotion
[git-gutter]:https://github.com/airblade/vim-gitgutter
[git-messenger.vim]:https://github.com/rhysd/git-messenger.vim
[lightline]:https://github.com/itchyny/lightline.vim
[neovim]:https://neovim.io/
[pgmnt]:https://github.com/cocopon/pgmnt.vim
Expand Down
7 changes: 6 additions & 1 deletion colors/iceberg.vim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"
" File: iceberg.vim
" Maintainer: cocopon <[email protected]>
" Modified: 2019-01-04 19:45+0900
" Modified: 2019-04-19 10:02+0900
" License: MIT


Expand Down Expand Up @@ -102,6 +102,8 @@ hi! GitGutterAdd ctermbg=235 ctermfg=150 guibg=#1e2132 guifg=#b4be82
hi! GitGutterChange ctermbg=235 ctermfg=109 guibg=#1e2132 guifg=#89b8c2
hi! GitGutterChangeDelete ctermbg=235 ctermfg=109 guibg=#1e2132 guifg=#89b8c2
hi! GitGutterDelete ctermbg=235 ctermfg=203 guibg=#1e2132 guifg=#e27878
hi! gitmessengerEndOfBuffer ctermbg=235 ctermfg=239 guibg=#1e2132 guifg=#444b71
hi! gitmessengerPopupNormal ctermbg=235 ctermfg=252 guibg=#1e2132 guifg=#c6c8d1
hi! Sneak ctermbg=140 ctermfg=234 guibg=#a093c7 guifg=#161821
hi! SneakScope ctermbg=236 ctermfg=242 guibg=#272c42 guifg=#6b7089
hi! SyntasticErrorSign ctermbg=235 ctermfg=203 guibg=#1e2132 guifg=#e27878
Expand Down Expand Up @@ -157,6 +159,9 @@ hi! link jsFlowObject Normal
hi! link jsFlowType PreProc
hi! link graphqlName Normal
hi! link graphqlOperator Normal
hi! link gitmessengerHash Comment
hi! link gitmessengerHeader Statement
hi! link gitmessengerHistory Constant
hi! link jsArrowFunction Operator
hi! link jsClassDefinition Normal
hi! link jsClassFuncName Title
Expand Down
19 changes: 19 additions & 0 deletions src/iceberg.vim
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,25 @@ function! s:create_context() abort
\ 'guifg': g.red,
\ }))

" [git-messenger.vim](https://github.com/rhysd/git-messenger.vim)
call add(links, pgmnt#hi#link('gitmessengerHash', 'Comment'))
call add(links, pgmnt#hi#link('gitmessengerHeader', 'Statement'))
call add(links, pgmnt#hi#link('gitmessengerHistory', 'Constant'))
call extend(rules, pgmnt#hi#group(
\ 'gitmessengerEndOfBuffer', {
\ 'ctermbg': c.linenr_bg,
\ 'ctermfg': c.linenr_fg,
\ 'guibg': g.linenr_bg,
\ 'guifg': g.linenr_fg,
\ }))
call extend(rules, pgmnt#hi#group(
\ 'gitmessengerPopupNormal', {
\ 'ctermbg': c.linenr_bg,
\ 'ctermfg': c.normal_fg,
\ 'guibg': g.linenr_bg,
\ 'guifg': g.normal_fg,
\ }))

" [vim-javascript](https://github.com/pangloss/vim-javascript)
call add(links, pgmnt#hi#link('jsArrowFunction', 'Operator'))
call add(links, pgmnt#hi#link('jsClassDefinition', 'Normal'))
Expand Down

0 comments on commit 24fd10b

Please sign in to comment.