diff options
Diffstat (limited to 'plugin/signify.vim')
-rw-r--r-- | plugin/signify.vim | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/plugin/signify.vim b/plugin/signify.vim new file mode 100644 index 0000000..2ab41fe --- /dev/null +++ b/plugin/signify.vim | |||
@@ -0,0 +1,35 @@ | |||
1 | augroup SIGNIFY | ||
2 | " displays file changes in sign column | ||
3 | |||
4 | let @l = ":let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f'}|:SignifyRefresh" | ||
5 | |||
6 | " use signify only with git (improves speed when loading buffers, see :h signify) | ||
7 | let g:signify_vcs_list = [ 'git' ] | ||
8 | |||
9 | let g:signify_cursorhold_insert = 0 | ||
10 | let g:signify_cursorhold_normal = 0 | ||
11 | let g:signify_update_on_bufenter = 0 | ||
12 | let g:signify_update_on_focusgained = 0 | ||
13 | let g:signify_sign_show_count = 0 | ||
14 | |||
15 | if has("multi_byte") && (&enc == 'utf-8' || &enc == 'utf-16' || &enc == 'ucs-4') | ||
16 | let g:signify_sign_add = '➕' | ||
17 | let g:signify_sign_delete = '➖' | ||
18 | let g:signify_sign_delete_first_line = '➖' | ||
19 | let g:signify_sign_change = '❇️' | ||
20 | let g:signify_sign_changedelete = '❇️' | ||
21 | endif | ||
22 | |||
23 | function! SignifyColorScheme() | ||
24 | highlight! SignifySignAdd ctermbg=NONE | ||
25 | highlight! link SignifySignAdd SignColumn | ||
26 | highlight! link SignifySignChange SignColumn | ||
27 | highlight! link SignifySignDelete SignColumn | ||
28 | highlight! link SignifySignChangeDelete SignColumn | ||
29 | highlight! link SignifySignDeleteFirstLine SignColumn | ||
30 | endfunction | ||
31 | |||
32 | packadd vim-signify | ||
33 | |||
34 | autocmd VimEnter,ColorScheme * call SignifyColorScheme() | ||
35 | augroup END | ||