change to new fugitive syntax (#567)
Co-authored-by: tanskann <tanskann@users.noreply.github.com>
This commit is contained in:
parent
27ad0d0786
commit
d6b7961e24
1 changed files with 2 additions and 2 deletions
|
@ -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': ' ' }
|
||||||
|
|
Loading…
Reference in a new issue