make HL class for changed_delete configurable

Closes #25.
This commit is contained in:
Marco Hinz 2013-04-25 14:37:45 +02:00
parent f93a7a8fc8
commit 22b1cf491f
3 changed files with 13 additions and 10 deletions

View File

@ -136,6 +136,7 @@ You can also change the highlighting classes for these lines. The defaults are:
let g:signify_line_color_add = 'DiffAdd' let g:signify_line_color_add = 'DiffAdd'
let g:signify_line_color_delete = 'DiffDelete' let g:signify_line_color_delete = 'DiffDelete'
let g:signify_line_color_change = 'DiffChange' let g:signify_line_color_change = 'DiffChange'
let g:signify_line_color_change_delete = 'DiffChange'
``` ```
#### you can toggle the plugin per buffer #### you can toggle the plugin per buffer

View File

@ -218,6 +218,7 @@ Example:
let g:signify_line_color_add = 'DiffAdd' let g:signify_line_color_add = 'DiffAdd'
let g:signify_line_color_delete = 'DiffDelete' let g:signify_line_color_delete = 'DiffDelete'
let g:signify_line_color_change = 'DiffChange' let g:signify_line_color_change = 'DiffChange'
let g:signify_line_color_change_delete = 'DiffChange'
The highlight groups to use with line highlighting. The highlight groups to use with line highlighting.

View File

@ -22,6 +22,7 @@ let s:id_top = s:id_start
let s:line_color_add = get(g:, 'signify_line_color_add', 'DiffAdd') 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_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 = 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_add = get(g:, 'signify_sign_add', '+')
let s:sign_delete = get(g:, 'signify_sign_delete', '_') let s:sign_delete = get(g:, 'signify_sign_delete', '_')
@ -463,7 +464,7 @@ endfunction
function! s:line_highlighting_enable() abort function! s:line_highlighting_enable() abort
execute 'sign define SignifyAdd text='. s:sign_add .' texthl=SignifyAdd linehl='. s:line_color_add 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 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 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 execute 'sign define SignifyDeleteFirstLine text='. s:sign_delete_first_line .' texthl=SignifyDelete linehl='. s:line_color_delete