Skip to content

Commit

Permalink
[SQUASH] This is a combination of 2 commits:
Browse files Browse the repository at this point in the history
- fixed diff highlight groups and added compatibility aliases
- added better highlighting for ALE (plugin)
  • Loading branch information
danilo-augusto committed Apr 8, 2020
1 parent 107b7e6 commit faf73c2
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions colors/afterglow.vim
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,6 @@ if has("gui_running") || &t_Co == 88 || &t_Co == 256
call <SID>X("scalaBackTick", s:blue, "", "")

" Git
call <SID>X("diffAdded", s:green, "", "")
call <SID>X("diffRemoved", s:red, "", "")
call <SID>X("diffLine", s:blue, "", "italic")
call <SID>X("diffSubname", s:foreground, "", "")
call <SID>X("gitFile", s:orange, "", "")
call <SID>X("gitcommitSummary", "", "", "bold")

Expand Down Expand Up @@ -584,6 +580,31 @@ if has("gui_running") || &t_Co == 88 || &t_Co == 256
call <SID>X("Comment", s:comment, "", "")
endif

" Diffs
" Plugin GitGutter uses highlight link to some of the groups below
call <SID>X("DiffAdded", s:green, s:chosen_background, "")
call <SID>X("DiffChange", s:yellow, s:chosen_background, "")
call <SID>X("DiffDelete", s:red, s:chosen_background, "")
call <SID>X("DiffLine", s:blue, s:chosen_background, "italic")
call <SID>X("DiffSubname", s:foreground, s:chosen_background, "")
" Aliases
" For plugins compatibility and some backcompatibility
" cf. https://github.com/vim/vim-history/blob/c2257f84a000fd08d3ba80d6b1a5d1c0148a39ea/runtime/syntax/diff.vim#L13
hi link diffAdded DiffAdded
hi link diffChange DiffChange
hi link diffDelete DiffDelete
hi link diffLine DiffLine
hi link diffSubname DiffSubname
hi link DiffRemoved DiffDelete
hi link diffRemoved DiffDelete
hi link GitGutterChangeLineDefault DiffDelete
hi link DiffAdd DiffAdded
hi link diffAdd DiffAdded

" ALE (plugin)
call <SID>X("ALEWarningSign", s:orange, s:chosen_background, "bold")
call <SID>X("ALEErrorSign", s:red, s:chosen_background, "bold")

" Delete Functions
delf <SID>X
delf <SID>rgb
Expand Down

0 comments on commit faf73c2

Please sign in to comment.