Added lightline support for quickfix.

main
zoomiti 3 years ago
parent 60b8d38fa3
commit cc8f11d8fa

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

Loading…