Register non-versioned files as inactive
This commit is contained in:
parent
2a3dafd045
commit
a96f1a7dc7
@ -55,6 +55,7 @@ function! sy#start() abort
|
||||
|
||||
let [ diff, b:sy.type ] = sy#repo#detect()
|
||||
if b:sy.type == 'unknown'
|
||||
call sy#disable()
|
||||
return
|
||||
endif
|
||||
|
||||
@ -80,6 +81,7 @@ function! sy#start() abort
|
||||
let [ diff, b:sy.type ] = sy#repo#detect()
|
||||
if b:sy.type == 'unknown'
|
||||
" no VCS found
|
||||
call sy#disable()
|
||||
return
|
||||
endif
|
||||
|
||||
|
@ -142,7 +142,8 @@ So either the one you set through |g:signify_difftool| or "diff" by default.
|
||||
|
||||
NOTE: If you don't set this option and Sy is activated, updating signs for a
|
||||
non-VCS file can lead to significant delay since all supported and installed
|
||||
VCS will be tested for.
|
||||
VCS will be tested for. (But this also happens only once, afterwards the
|
||||
buffer is registered as inactive.)
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*g:signify_vcs_cmds*
|
||||
@ -316,6 +317,9 @@ COMMAND *signify-commands*
|
||||
<
|
||||
Enable the plugin for the current buffer only.
|
||||
|
||||
Can also be used to when a repository was initialized while Sy was already
|
||||
loaded.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*signify-:SignifyDisable*
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user