1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-25 11:12:22 +08:00
2017-02-26 10:14:28 +08:00

12 lines
406 B
VimL

function! airline#extensions#tabline#formatters#spacevim#format(bufnr, buffers) abort
let id = SpaceVim#api#messletters#get().bubble_num(a:bufnr, g:spacevim_buffer_index_type) . ' '
let fn = fnamemodify(bufname(a:bufnr), ':t')
if empty(fn)
return 'No Name'
elseif !g:airline#extensions#tabline#buffer_idx_mode
return id . fn
else
return fn
endif
endfunction