do not set colors once again at every buffer switch
Now colors only get set at plugin loading and when :colo is used.
This commit is contained in:
parent
06c7f1096b
commit
fa4c921557
@ -90,9 +90,8 @@ endif
|
|||||||
" Initial stuff {{{1
|
" Initial stuff {{{1
|
||||||
aug signify
|
aug signify
|
||||||
au!
|
au!
|
||||||
au ColorScheme * call s:colors_set()
|
au ColorScheme * call s:colors_set()
|
||||||
au BufWritePost,FocusGained * call s:start(resolve(expand('<afile>:p')))
|
au BufWritePost,BufEnter,FocusGained * call s:start(resolve(expand('<afile>:p')))
|
||||||
au BufEnter * let s:colors_set = 0 | call s:start(resolve(expand('<afile>:p')))
|
|
||||||
aug END
|
aug END
|
||||||
|
|
||||||
com! -nargs=0 -bar SignifyToggle call s:toggle_signify()
|
com! -nargs=0 -bar SignifyToggle call s:toggle_signify()
|
||||||
@ -146,7 +145,7 @@ function! s:start(path) abort
|
|||||||
let s:sy[a:path].last_jump_was_next = -1
|
let s:sy[a:path].last_jump_was_next = -1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if s:sign_overwrite == 0
|
if !s:sign_overwrite
|
||||||
call s:sign_get_others(a:path)
|
call s:sign_get_others(a:path)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user