change to new fugitive syntax (#567)

Co-authored-by: tanskann <tanskann@users.noreply.github.com>
This commit is contained in:
Niklas Tanskanenandtanskann authored and GitHub committed 2020-04-15 22:39:13 -04:00
1 parent 27ad0d0786
commit d6b7961e24
1 file changed
+2 -2
+2 -2
View File
@@ -124,12 +124,12 @@ let g:lightline = {
\ 'component': {
\ 'readonly': '%{&filetype=="help"?"":&readonly?"🔒":""}',
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}',
\ 'fugitive': '%{exists("*fugitive#head")?fugitive#head():""}'
\ 'fugitive': '%{exists("*FugitiveHead")?FugitiveHead():""}'
\ },
\ 'component_visible_condition': {
\ 'readonly': '(&filetype!="help"&& &readonly)',
\ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))',
\ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())'
\ 'fugitive': '(exists("*FugitiveHead") && ""!=FugitiveHead())'
\ },
\ 'separator': { 'left': ' ', 'right': ' ' },
\ 'subseparator': { 'left': ' ', 'right': ' ' }