Merge pull request #934 from chrisbra/formatter

fix typo in documentation about formatters
This commit is contained in:
Christian Brabandt 2016-01-20 23:59:05 +01:00
commit d07799421a

View File

@ -500,7 +500,9 @@ exposed.
let g:airline#extensions#tabline#formatter = 'default' let g:airline#extensions#tabline#formatter = 'default'
" here is how you can define a 'foo' formatter: " 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') return fnamemodify(bufname(a:bufnr), ':t')
endfunction endfunction
let g:airline#extensions#tabline#formatter = 'foo' let g:airline#extensions#tabline#formatter = 'foo'