Permalink
Browse files

Check if tagbar exists before defining its segments

Refs #139.
  • Loading branch information...
Lokaltog committed May 14, 2012
1 parent d62402a commit b31111e14ceac0160a1703030fbbaae5656bee4c
Showing with 2 additions and 0 deletions.
  1. +2 −0 autoload/Powerline/Segments/tagbar.vim
@@ -1,3 +1,5 @@
let g:Powerline#Segments#tagbar#segments = Pl#Segment#Init(['tagbar'
+ \ (exists('g:loaded_tagbar') && g:loaded_tagbar == 1),
+ \
\ , Pl#Segment#Create('currenttag', '%{tagbar#currenttag("%s", "")}', Pl#Segment#Modes('!N'))
\ ])

1 comment on commit b31111e

After this update i don't see my tag anymore. I think it's because tagbar is loaded after powerline with pathogen :(

Please sign in to comment.