fix typo in documentation about formatters

fixes #873
This commit is contained in:
Christian Brabandt 2016-01-20 23:53:14 +01:00
parent 17eff4f4b0
commit 604f744727
1 changed files with 3 additions and 1 deletions

View File

@ -500,7 +500,9 @@ exposed.
let g:airline#extensions#tabline#formatter = 'default'
" here is how you can define a 'foo' formatter:
function! airline#extensions#tabline#foo#format(bufnr, buffers)
" create a file in the dir autoload/airline/extensions/tabline/formatter/
" called foo.vim
function! airline#extensions#tabline#formatter#foo#format(bufnr, buffers)
return fnamemodify(bufname(a:bufnr), ':t')
endfunction
let g:airline#extensions#tabline#formatter = 'foo'