feat(): allow for buffer index formatting

This commit is contained in:
mhartington
2016-11-25 12:36:55 -05:00
parent 3ebd7ad64b
commit ee8173e41d
2 changed files with 20 additions and 4 deletions

View File

@@ -13,8 +13,7 @@ let s:current_modified = 0
let s:current_tabline = ''
let s:current_visible_buffers = []
let s:number_map = &encoding == 'utf-8'
\ ? {
let s:number_map = {
\ '0': '⁰',
\ '1': '¹',
\ '2': '²',
@@ -26,6 +25,8 @@ let s:number_map = &encoding == 'utf-8'
\ '8': '⁸',
\ '9': '⁹'
\ }
let s:number_map = &encoding == 'utf-8'
\ ? get(g:, 'airline#extensions#tabline#buffer_idx_format', s:number_map)
\ : {}
function! airline#extensions#tabline#buffers#off()