mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-11 12:47:44 +08:00
Merge pull request #934 from chrisbra/formatter
fix typo in documentation about formatters
This commit is contained in:
commit
d07799421a
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user