From 060fbb4a26ed1a1ba0f398f57cb096651004ab34 Mon Sep 17 00:00:00 2001 From: Fayimora Femi-Balogun Date: Fri, 28 Mar 2014 03:44:24 +0000 Subject: [PATCH] Add fugitive to lightline statusbar --- vim/settings/lightline.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vim/settings/lightline.vim b/vim/settings/lightline.vim index 3edd1d8..d045f35 100644 --- a/vim/settings/lightline.vim +++ b/vim/settings/lightline.vim @@ -1,7 +1,15 @@ let g:lightline = { \ 'colorscheme': 'solarized', + \ 'active': { + \ 'left': [ [ 'mode' ], + \ [ 'fugitive', 'readonly', 'filename', 'modified' ] ] + \ }, \ 'component': { \ 'readonly': '%{&readonly?"⭤":""}', + \ 'fugitive': '%{exists("*fugitive#head")?fugitive#head():""}' + \ }, + \ 'component_visible_condition': { + \ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())' \ }, \ 'separator': { 'left': '⮀', 'right': '⮂' }, \ 'subseparator': { 'left': '⮁', 'right': '⮃' }