diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 098e8fe..b41f25a 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -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 " }}}