From 22b1cf491f7f95a0c2fa273d5414517f47063ee8 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Thu, 25 Apr 2013 14:37:45 +0200 Subject: [PATCH] make HL class for changed_delete configurable Closes #25. --- README.md | 7 ++++--- doc/signify.txt | 7 ++++--- plugin/signify.vim | 9 +++++---- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5298aab..2be9b5f 100644 --- a/README.md +++ b/README.md @@ -133,9 +133,10 @@ let g:signify_mapping_toggle_highlight = 'gh' You can also change the highlighting classes for these lines. The defaults are: ```vim -let g:signify_line_color_add = 'DiffAdd' -let g:signify_line_color_delete = 'DiffDelete' -let g:signify_line_color_change = 'DiffChange' +let g:signify_line_color_add = 'DiffAdd' +let g:signify_line_color_delete = 'DiffDelete' +let g:signify_line_color_change = 'DiffChange' +let g:signify_line_color_change_delete = 'DiffChange' ``` #### you can toggle the plugin per buffer diff --git a/doc/signify.txt b/doc/signify.txt index 16009bd..acc0bac 100644 --- a/doc/signify.txt +++ b/doc/signify.txt @@ -215,9 +215,10 @@ Example: ============- - let g:signify_line_color_add = 'DiffAdd' - let g:signify_line_color_delete = 'DiffDelete' - let g:signify_line_color_change = 'DiffChange' + let g:signify_line_color_add = 'DiffAdd' + let g:signify_line_color_delete = 'DiffDelete' + let g:signify_line_color_change = 'DiffChange' + let g:signify_line_color_change_delete = 'DiffChange' The highlight groups to use with line highlighting. diff --git a/plugin/signify.vim b/plugin/signify.vim index abcb234..f99ae87 100644 --- a/plugin/signify.vim +++ b/plugin/signify.vim @@ -19,9 +19,10 @@ let s:vcs_list = get(g:, 'signify_vcs_list', [ 'git', 'hg', 'svn', 'darcs' let s:id_start = 0x100 let s:id_top = s:id_start -let s:line_color_add = get(g:, 'signify_line_color_add', 'DiffAdd') -let s:line_color_delete = get(g:, 'signify_line_color_delete', 'DiffDelete') -let s:line_color_change = get(g:, 'signify_line_color_change', 'DiffChange') +let s:line_color_add = get(g:, 'signify_line_color_add', 'DiffAdd') +let s:line_color_delete = get(g:, 'signify_line_color_delete', 'DiffDelete') +let s:line_color_change = get(g:, 'signify_line_color_change', 'DiffChange') +let s:line_color_change_delete = get(g:, 'signify_line_color_change_delete', 'DiffChange') let s:sign_add = get(g:, 'signify_sign_add', '+') let s:sign_delete = get(g:, 'signify_sign_delete', '_') @@ -463,7 +464,7 @@ endfunction function! s:line_highlighting_enable() abort execute 'sign define SignifyAdd text='. s:sign_add .' texthl=SignifyAdd linehl='. s:line_color_add execute 'sign define SignifyChange text='. s:sign_change .' texthl=SignifyChange linehl='. s:line_color_change - execute 'sign define SignifyChangeDelete text='. s:sign_change_delete .' texthl=SignifyChange linehl='. s:line_color_change + execute 'sign define SignifyChangeDelete text='. s:sign_change_delete .' texthl=SignifyChange linehl='. s:line_color_change_delete execute 'sign define SignifyDelete text='. s:sign_delete .' texthl=SignifyDelete linehl='. s:line_color_delete execute 'sign define SignifyDeleteFirstLine text='. s:sign_delete_first_line .' texthl=SignifyDelete linehl='. s:line_color_delete