Tabline: Make specifying formatter more easy

closes #1863
This commit is contained in:
Christian Brabandt
2019-02-02 17:45:55 +01:00
parent d372b5bc46
commit dc7d991007
2 changed files with 17 additions and 2 deletions

View File

@@ -809,6 +809,13 @@ with the middle mouse button to delete that buffer.
Note: last option can be used to specify a different formatter for
displaying the numbers. By default tabline/formatter/tabnr.vim is used
The argument of that setting should either be a filename that exists
autoload/airline/extensions/tabline/formatter/ (without .vim extension)
and needs to provide a format() function. Alternatively you can use a
custom function name, that is defined e.g. in your .vimrc file. In any
case, the function needs to take 2 arguments, tab_nr_type and tabpage
number.
For an example, have a look at the default tabline/formatter/tabnr.vim
<
* enable/disable displaying tab number in tabs mode. >
let g:airline#extensions#tabline#show_tab_nr = 1