fix tagbar buffer detection (ref: #405)

This commit is contained in:
itchyny
2019-12-27 18:13:16 +09:00
parent 6daec38c1d
commit 0ba8888c0e
2 changed files with 4 additions and 6 deletions

View File

@@ -330,7 +330,7 @@ let g:lightline = {
\ }
function! LightlineMode()
return expand('%:t') ==# '__Tagbar__' ? 'Tagbar':
return expand('%:t') =~# '^__Tagbar__' ? 'Tagbar':
\ expand('%:t') ==# 'ControlP' ? 'CtrlP' :
\ &filetype ==# 'unite' ? 'Unite' :
\ &filetype ==# 'vimfiler' ? 'VimFiler' :