New option: g:signify_sign_show_text

This makes all Signify signs use a non-breaking space as text. This is
convenient if only the background colors of the signs are important.

References #188.
This commit is contained in:
Marco Hinz 2016-09-28 17:05:40 +02:00
parent 472668fbd2
commit faf7a03071
No known key found for this signature in database
GPG Key ID: AC9D48E91BCF448C
3 changed files with 33 additions and 6 deletions

View File

@ -3,10 +3,17 @@
scriptencoding utf-8
" Init: values {{{1
let s:sign_add = get(g:, 'signify_sign_add', '+')
let s:sign_delete_first_line = get(g:, 'signify_sign_delete_first_line', '‾')
let s:sign_change = get(g:, 'signify_sign_change', '!')
let s:sign_changedelete = get(g:, 'signify_sign_changedelete', s:sign_change)
if get(g:, 'signify_sign_show_text', 1)
let s:sign_add = get(g:, 'signify_sign_add', '+')
let s:sign_delete_first_line = get(g:, 'signify_sign_delete_first_line', '‾')
let s:sign_change = get(g:, 'signify_sign_change', '!')
let s:sign_changedelete = get(g:, 'signify_sign_changedelete', s:sign_change)
else
let s:sign_add = ' '
let s:sign_delete_first_line = ' '
let s:sign_change = ' '
let s:sign_changedelete = ' '
endif
let s:sign_show_count = get(g:, 'signify_sign_show_count', 1)
" Function: #setup {{{1

View File

@ -3,8 +3,13 @@
scriptencoding utf-8
" Init: values {{{1
let s:sign_show_count = get(g:, 'signify_sign_show_count', 1)
let s:sign_delete = get(g:, 'signify_sign_delete', '_')
if get(g:, 'signify_sign_show_text', 1)
let s:sign_delete = get(g:, 'signify_sign_delete', '_')
let s:sign_show_count = get(g:, 'signify_sign_show_count', 1)
else
let s:sign_delete = ' '
let s:sign_show_count = 0
endif
let s:delete_highlight = ['', 'SignifyLineDelete']
" Function: #get_next_id {{{1

View File

@ -105,6 +105,7 @@ All available options:~
|g:signify_sign_change|
|g:signify_sign_changedelete|
|g:signify_sign_show_count|
|g:signify_sign_show_text|
|g:signify_cursorhold_normal|
|g:signify_cursorhold_insert|
|g:signify_difftool|
@ -279,6 +280,20 @@ Add the number of deleted lines to |g:signify_sign_delete| (up to 99) and
|g:signify_sign_changedelete| (up to 9). Otherwise only the normal signs will
be shown.
------------------------------------------------------------------------------
*g:signify_sign_show_text*
>
let g:signify_sign_show_text = 1
<
Don't show any text in the sign column. (Actually it will show a non-breaking
space.)
This is useful if you only want to see colors instead. If your colorscheme
doesn't do it for you, you can set the background color of a particular sign
yourself: |signify-colors|.
If you want no sign column at all and use Vim 7.4.2201+, use |'signcolumn'|.
------------------------------------------------------------------------------
*g:signify_cursorhold_normal*
*g:signify_cursorhold_insert*