Merge pull request #2295 from nbCloud91/patch-1

coc_status should show with autochdir
This commit is contained in:
Christian Brabandt 2020-11-21 20:03:04 +01:00 committed by GitHub
commit a48f67657f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ function! airline#init#sections()
endif
if !exists('g:airline_section_c')
if exists("+autochdir") && &autochdir == 1
let g:airline_section_c = airline#section#create(['%<', 'path', spc, 'readonly'])
let g:airline_section_c = airline#section#create(['%<', 'path', spc, 'readonly', 'coc_status'])
else
let g:airline_section_c = airline#section#create(['%<', 'file', spc, 'readonly', 'coc_status'])
endif