Skip to content

Commit

Permalink
Update banner (wsdjeg#3549)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdjeg authored May 23, 2020
1 parent 6278504 commit 4d81801
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 437 deletions.
14 changes: 7 additions & 7 deletions autoload/SpaceVim/layers/VersionControl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,25 @@ endfunction
function! s:git_branch() abort
if exists('g:loaded_fugitive')
try
let l:head = fugitive#head()
if empty(l:head)
let head = fugitive#head()
if empty(head)
call fugitive#detect(getcwd())
let l:head = fugitive#head()
let head = fugitive#head()
endif
if g:spacevim_statusline_unicode_symbols == 1
return empty(l:head) ? '' : ''.l:head . ' ' . s:gtm_status()
return empty(head) ? '' : ''.head . ' ' . s:gtm_status()
else
return empty(l:head) ? '' : ' '.l:head . ' ' . s:gtm_status()
return empty(head) ? '' : ' '.head . ' ' . s:gtm_status()
endif
catch
endtry
elseif exists('g:loaded_git')
try
let head = '%{git#branch#current()}'
if g:spacevim_statusline_unicode_symbols == 1
return empty(l:head) ? '' : '' . head . s:gtm_status()
return empty(head) ? '' : ''.head . ' ' . s:gtm_status()
else
return empty(l:head) ? '' : ' '. head . s:gtm_status()
return empty(head) ? '' : ' '.head . ' ' . s:gtm_status()
endif
catch
endtry
Expand Down
Loading

0 comments on commit 4d81801

Please sign in to comment.