Permalink
Browse files

Add current highlighting group segment

Refs #90.
  • Loading branch information...
1 parent 37e1dc2 commit 3a97e91bedc7120ea73073ec78dbeedc5b5451aa @Lokaltog Lokaltog committed Feb 18, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 autoload/Powerline/Colorschemes/distinguished.vim
  2. +2 −1 autoload/Powerline/Segments.vim
@@ -17,7 +17,8 @@ let g:Powerline#Colorschemes#distinguished#colorscheme = Pl#Colorscheme#Init([
\ 'rvm:string',
\ 'rvm:statusline',
\ 'virtualenv:statusline',
- \ 'charcode'], Pl#Hi#Create(Pl#Hi#Cterm(247, 236) ), { 'i': Pl#Hi#Create(Pl#Hi#Cterm(117, 24) ), } ),
+ \ 'charcode',
+ \ 'currhigroup'], Pl#Hi#Create(Pl#Hi#Cterm(247, 236) ), { 'i': Pl#Hi#Create(Pl#Hi#Cterm(117, 24) ), } ),
\ Pl#Colorscheme#HiSegment(['lineinfo'], Pl#Hi#Create(Pl#Hi#Cterm(236, 252), 'bold'), { 'N': Pl#Hi#Create(Pl#Hi#Cterm(245, 235), 'bold'), 'i': Pl#Hi#Create(Pl#Hi#Cterm( 23, 117), 'bold'), } ),
\ Pl#Colorscheme#HiSegment(['errors'], Pl#Hi#Create(Pl#Hi#Cterm(214, 236), 'bold'), { 'i': Pl#Hi#Create(Pl#Hi#Cterm(214, 24), 'bold'), } ),
\ Pl#Colorscheme#HiSegment(['lineinfo.line.tot'], Pl#Hi#Create(Pl#Hi#Cterm(244 ) ), { 'N': Pl#Hi#Create(Pl#Hi#Cterm(241 ) ), 'i': Pl#Hi#Create(Pl#Hi#Cterm( 23 ) ), } ),
@@ -22,5 +22,6 @@ let g:Powerline#Segments#segments = Pl#Segment#Init(
\ Pl#Segment#Create('line.cur' , '$LINE %3l'),
\ Pl#Segment#Create('line.tot' , '$COL %-2c'),
\ ),
- \ Pl#Segment#Create('charcode' , '%{Powerline#Functions#GetCharCode()}', Pl#Segment#Modes('!N'))
+ \ Pl#Segment#Create('charcode' , '%{Powerline#Functions#GetCharCode()}', Pl#Segment#Modes('!N')),
+ \ Pl#Segment#Create('currhigroup' , '%{synIDattr(synID(line("."), col("."), 1), "name")}', Pl#Segment#Modes('!N'))
\ )

0 comments on commit 3a97e91

Please sign in to comment.