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': '⮃' }