|
|
@ -191,15 +191,20 @@ let g:lightline = { |
|
|
|
\ 'colorscheme': 'wombat', |
|
|
|
\ 'colorscheme': 'wombat', |
|
|
|
\ 'active': { |
|
|
|
\ 'active': { |
|
|
|
\ 'left': [ [ 'mode', 'paste' ], |
|
|
|
\ 'left': [ [ 'mode', 'paste' ], |
|
|
|
\ [ 'filename', 'fugitive', 'modified' ] ] |
|
|
|
\ [ 'filename', 'fugitive', 'modified' ] |
|
|
|
|
|
|
|
\ ] |
|
|
|
\ }, |
|
|
|
\ }, |
|
|
|
\ 'component': { |
|
|
|
\ 'component': { |
|
|
|
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}', |
|
|
|
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}' |
|
|
|
\ 'fugitive': '%{exists("*fugitive#head")?"ᓯ ".fugitive#head():""}' |
|
|
|
\ }, |
|
|
|
|
|
|
|
\ 'component_function': { |
|
|
|
|
|
|
|
\ 'fugitive': 'MyFugitive', |
|
|
|
\ }, |
|
|
|
\ }, |
|
|
|
\ 'component_visible_condition': { |
|
|
|
\ 'component_visible_condition': { |
|
|
|
\ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))', |
|
|
|
\ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))' |
|
|
|
\ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())' |
|
|
|
|
|
|
|
\ } |
|
|
|
\ } |
|
|
|
\ } |
|
|
|
\ } |
|
|
|
|
|
|
|
function! MyFugitive() |
|
|
|
|
|
|
|
return exists('*fugitive#head') && strlen(fugitive#head()) ? 'ᓯ '.fugitive#head() : '' |
|
|
|
|
|
|
|
endfunction |
|
|
|
"" }}} |
|
|
|
"" }}} |
|
|
|