Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check if tagbar exists before defining its segments

Refs #139.
  • Loading branch information...
commit b31111e14ceac0160a1703030fbbaae5656bee4c 1 parent d62402a
@Lokaltog Lokaltog authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  autoload/Powerline/Segments/tagbar.vim
View
2  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'))
\ ])
Please sign in to comment.
Something went wrong with that request. Please try again.