mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-24 18:52:22 +08:00
fix(tagbar): fix tagbar startup
close https://github.com/SpaceVim/SpaceVim/issues/4872
This commit is contained in:
parent
2ae3d23dfc
commit
c6195cd0e4
@ -374,7 +374,9 @@ endfunction
|
|||||||
function! SpaceVim#layers#core#statusline#_current_tag() abort
|
function! SpaceVim#layers#core#statusline#_current_tag() abort
|
||||||
let tag = ''
|
let tag = ''
|
||||||
try
|
try
|
||||||
let tag =tagbar#currenttag('%s ', '')
|
if execute('filetype') ==# 'detection:ON'
|
||||||
|
let tag = tagbar#currenttag('%s ', '')
|
||||||
|
endif
|
||||||
catch
|
catch
|
||||||
endtry
|
endtry
|
||||||
return tag
|
return tag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user