aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/Powerline/Segments/fugitive.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/autoload/Powerline/Segments/fugitive.vim')
-rw-r--r--vim/autoload/Powerline/Segments/fugitive.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/autoload/Powerline/Segments/fugitive.vim b/vim/autoload/Powerline/Segments/fugitive.vim
new file mode 100644
index 0000000..297556b
--- /dev/null
+++ b/vim/autoload/Powerline/Segments/fugitive.vim
@@ -0,0 +1,5 @@
+let g:Powerline#Segments#fugitive#segments = Pl#Segment#Init('fugitive',
+ \ (exists('g:loaded_fugitive') && g:loaded_fugitive == 1),
+ \
+ \ Pl#Segment#Create('branch', '%{Powerline#Functions#fugitive#GetBranch("$BRANCH")}')
+\ )