Added lightline support for quickfix.

main
zoomiti 3 years ago
parent 60b8d38fa3
commit cc8f11d8fa

@ -201,6 +201,7 @@ let g:lightline = {
function! LightlineFilename()
return &filetype ==# 'fugitive' ? fugitive#statusline() :
\ &filetype ==# 'qf' ? 'QuickFix' :
\ expand('%:t') !=# '' ? expand('%:t') : '[No Name]'
endfunction
@ -209,7 +210,7 @@ function! LightlineReadonly()
endfunction
function! LightlineBranch()
return &filetype ==# 'fugitive' ? '' : FugitiveHead()
return &filetype !~# '\v(help|fugitive|qf)' ? FugitiveHead() : ''
endfunction
" }}}

Loading…