Add fugitive to lightline statusbar

This commit is contained in:
Fayimora Femi-Balogun 2014-03-28 03:44:24 +00:00
parent bc5da61c89
commit 060fbb4a26

View File

@ -1,7 +1,15 @@
let g:lightline = { let g:lightline = {
\ 'colorscheme': 'solarized', \ 'colorscheme': 'solarized',
\ 'active': {
\ 'left': [ [ 'mode' ],
\ [ 'fugitive', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component': { \ 'component': {
\ 'readonly': '%{&readonly?"⭤":""}', \ 'readonly': '%{&readonly?"⭤":""}',
\ 'fugitive': '%{exists("*fugitive#head")?fugitive#head():""}'
\ },
\ 'component_visible_condition': {
\ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())'
\ }, \ },
\ 'separator': { 'left': '⮀', 'right': '⮂' }, \ 'separator': { 'left': '⮀', 'right': '⮂' },
\ 'subseparator': { 'left': '⮁', 'right': '⮃' } \ 'subseparator': { 'left': '⮁', 'right': '⮃' }