branch: Check untracked and dirty only wehn the fugitive/lawrencium plugins are installed
This commit is contained in:
parent
1b41629214
commit
79f91649b6
@ -197,6 +197,13 @@ function! s:update_untracked()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
for vcs in keys(s:vcs_config)
|
for vcs in keys(s:vcs_config)
|
||||||
|
" only check, for git, if fugitive is installed
|
||||||
|
" and for 'hg' if lawrencium is installed, else skip
|
||||||
|
if vcs is# 'git' && !airline#util#has_fugitive()
|
||||||
|
continue
|
||||||
|
elseif vcs is# 'mercurial' && !airline#util#has_lawrencium()
|
||||||
|
continue
|
||||||
|
endif
|
||||||
let config = s:vcs_config[vcs]
|
let config = s:vcs_config[vcs]
|
||||||
" Note that asynchronous update updates s:vcs_config only, and only
|
" Note that asynchronous update updates s:vcs_config only, and only
|
||||||
" s:update_untracked updates b:buffer_vcs_config. If s:vcs_config is
|
" s:update_untracked updates b:buffer_vcs_config. If s:vcs_config is
|
||||||
|
Loading…
Reference in New Issue
Block a user