new sign for changed && deleted lines
This commit is contained in:
parent
0e702006c8
commit
b82b007c9c
@ -93,6 +93,12 @@ else
|
||||
sign define SignifyChange text=! texthl=SignifyChange linehl=none
|
||||
endif
|
||||
|
||||
if exists('g:signify_sign_change_delete')
|
||||
exe 'sign define SignifyChangeDelete text='. g:signify_sign_change_delete .' texthl=SignifyChange linehl=none'
|
||||
else
|
||||
sign define SignifyChangeDelete text=!_ texthl=SignifyChange linehl=none
|
||||
endif
|
||||
|
||||
" Initial stuff {{{1
|
||||
aug signify
|
||||
au!
|
||||
@ -330,8 +336,8 @@ function! s:diff_process(path, diff) abort
|
||||
call s:sign_set(new_line + offset, 'SignifyChange', a:path)
|
||||
let offset += 1
|
||||
endwhile
|
||||
call s:sign_set(new_line + offset - 1, 'SignifyDelete', a:path)
|
||||
" (old_count < new_count): Lines were added && changed.
|
||||
call s:sign_set(new_line + offset - 1, 'SignifyChangeDelete', a:path)
|
||||
" (old_count < new_count): Lines were changed && added.
|
||||
else
|
||||
let offset = 0
|
||||
while offset < old_count
|
||||
@ -459,6 +465,7 @@ function! s:toggle_line_highlighting() abort
|
||||
if s:line_highlight
|
||||
sign define SignifyAdd text=+ texthl=SignifyAdd linehl=none
|
||||
sign define SignifyChange text=! texthl=SignifyChange linehl=none
|
||||
sign define SignifyChangeDelete text=!_ texthl=SignifyChange linehl=none
|
||||
sign define SignifyDelete text=_ texthl=SignifyDelete linehl=none
|
||||
sign define SignifyDeleteFirstLine text=‾ texthl=SignifyDelete linehl=none
|
||||
|
||||
@ -470,6 +477,7 @@ function! s:toggle_line_highlighting() abort
|
||||
|
||||
exe 'sign define SignifyAdd text=+ texthl=SignifyAdd linehl='. add
|
||||
exe 'sign define SignifyChange text=! texthl=SignifyChange linehl='. change
|
||||
exe 'sign define SignifyChangeDelete text=!_ texthl=SignifyChange linehl='. change
|
||||
exe 'sign define SignifyDelete text=_ texthl=SignifyDelete linehl='. delete
|
||||
exe 'sign define SignifyDeleteFirstLine text=‾ texthl=SignifyDelete linehl='. delete
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user