VIM: Hides git branch "blob" on status line if not in a git project
This commit is contained in:
parent
e95aef3c0d
commit
a4a520aa02
1 changed files with 6 additions and 3 deletions
|
@ -85,9 +85,12 @@ function! DetectMode(mode)
|
||||||
|
|
||||||
" git branch
|
" git branch
|
||||||
if exists("*FugitiveHead")
|
if exists("*FugitiveHead")
|
||||||
let statusline .= "%#GruvboxBg4#\ " . left
|
let head = FugitiveHead()
|
||||||
let statusline .= "%#PmenuThumb#%{FugitiveHead()}"
|
if head != ''
|
||||||
let statusline .= "%#GruvboxBg4#" . right . "\ "
|
let statusline .= "%#GruvboxBg4#\ " . left
|
||||||
|
let statusline .= "%#PmenuThumb#" . head
|
||||||
|
let statusline .= "%#GruvboxBg4#" . right . "\ "
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Filetype
|
" Filetype
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue