Skip to content

Commit

Permalink
Use tagbar#currenttag instead of CFI
Browse files Browse the repository at this point in the history
Current-func-info is far less used than Tagbar so it should work better
to use Tagbar's functionality to display the current tag in the
statusline.

Closes #139.
  • Loading branch information
Lokaltog committed May 14, 2012
1 parent b3069d3 commit 7bc55be
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion autoload/Powerline/Colorschemes/default.vim
Expand Up @@ -84,7 +84,7 @@ let g:Powerline#Colorschemes#default#colorscheme = Pl#Colorscheme#Init([
\ 'i': ['brightestred', ['bold']],
\ }),
\
\ Pl#Hi#Segments(['current_function', 'fileformat', 'fileencoding', 'pwd', 'filetype', 'rvm:string', 'rvm:statusline', 'virtualenv:statusline', 'charcode', 'currhigroup'], {
\ Pl#Hi#Segments(['currenttag', 'fileformat', 'fileencoding', 'pwd', 'filetype', 'rvm:string', 'rvm:statusline', 'virtualenv:statusline', 'charcode', 'currhigroup'], {
\ 'n': ['gray8', 'gray2'],
\ 'i': ['mediumcyan', 'darkestblue'],
\ }),
Expand Down
2 changes: 1 addition & 1 deletion autoload/Powerline/Colorschemes/skwp.vim
Expand Up @@ -105,7 +105,7 @@ let g:Powerline#Colorschemes#skwp#colorscheme = Pl#Colorscheme#Init([
\ 'i': ['base03', ['bold']],
\ }),
\
\ Pl#Hi#Segments(['current_function', 'fileformat', 'fileencoding', 'pwd', 'filetype', 'rvm:string', 'rvm:statusline', 'virtualenv:statusline', 'charcode', 'currhigroup'], {
\ Pl#Hi#Segments(['currenttag', 'fileformat', 'fileencoding', 'pwd', 'filetype', 'rvm:string', 'rvm:statusline', 'virtualenv:statusline', 'charcode', 'currhigroup'], {
\ 'n': ['gray5', 'gray2'],
\ 'i': ['mediumcyan', 'base02'],
\ }),
Expand Down
3 changes: 0 additions & 3 deletions autoload/Powerline/Functions/cfi.vim

This file was deleted.

5 changes: 0 additions & 5 deletions autoload/Powerline/Segments/cfi.vim

This file was deleted.

3 changes: 3 additions & 0 deletions autoload/Powerline/Segments/tagbar.vim
@@ -0,0 +1,3 @@
let g:Powerline#Segments#tagbar#segments = Pl#Segment#Init(['tagbar'
\ , Pl#Segment#Create('currenttag', '%{tagbar#currenttag("%s", "")}')
\ ])
2 changes: 1 addition & 1 deletion autoload/Powerline/Themes/default.vim
Expand Up @@ -8,7 +8,7 @@ let g:Powerline#Themes#default#theme = Pl#Theme#Create(
\ , 'aurum:status'
\ , 'syntastic:errors'
\ , Pl#Segment#Truncate()
\ , 'cfi:current_function'
\ , 'tagbar:currenttag'
\ , Pl#Segment#Split()
\ , 'rvm:string'
\ , 'virtualenv:statusline'
Expand Down

0 comments on commit 7bc55be

Please sign in to comment.