1
0
Fork 0
mirror of synced 2024-12-22 06:51:06 -05:00

change to new fugitive syntax (#567)

Co-authored-by: tanskann <tanskann@users.noreply.github.com>
This commit is contained in:
Niklas Tanskanen 2020-04-16 05:39:13 +03:00 committed by GitHub
parent 27ad0d0786
commit d6b7961e24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,12 +124,12 @@ let g:lightline = {
\ 'component': { \ 'component': {
\ 'readonly': '%{&filetype=="help"?"":&readonly?"🔒":""}', \ 'readonly': '%{&filetype=="help"?"":&readonly?"🔒":""}',
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}', \ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}',
\ 'fugitive': '%{exists("*fugitive#head")?fugitive#head():""}' \ 'fugitive': '%{exists("*FugitiveHead")?FugitiveHead():""}'
\ }, \ },
\ 'component_visible_condition': { \ 'component_visible_condition': {
\ 'readonly': '(&filetype!="help"&& &readonly)', \ 'readonly': '(&filetype!="help"&& &readonly)',
\ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))', \ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))',
\ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())' \ 'fugitive': '(exists("*FugitiveHead") && ""!=FugitiveHead())'
\ }, \ },
\ 'separator': { 'left': ' ', 'right': ' ' }, \ 'separator': { 'left': ' ', 'right': ' ' },
\ 'subseparator': { 'left': ' ', 'right': ' ' } \ 'subseparator': { 'left': ' ', 'right': ' ' }