mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-22 14:49:06 +08:00
[fix] readingtime formatter's doc
This commit is contained in:
parent
f4aaa7c76f
commit
8e0d5cd95d
|
@ -1478,14 +1478,14 @@ vim-windowswap <https://github.com/wesQ3/vim-windowswap>
|
||||||
\ ['asciidoc', 'help', 'mail', 'markdown', 'org', 'plaintex', 'rst', 'tex', 'text'])
|
\ ['asciidoc', 'help', 'mail', 'markdown', 'org', 'plaintex', 'rst', 'tex', 'text'])
|
||||||
" Use ['all'] to enable for all filetypes.
|
" Use ['all'] to enable for all filetypes.
|
||||||
|
|
||||||
* enable reading time formatter >
|
|
||||||
let g:airline#extensions#wordcount#enabled = 1
|
|
||||||
|
|
||||||
* defines the name of a formatter for word count will be displayed: >
|
* defines the name of a formatter for word count will be displayed: >
|
||||||
" The default will try to guess LC_NUMERIC and format number accordingly
|
" The default will try to guess LC_NUMERIC and format number accordingly
|
||||||
" e.g. 1,042 in English and 1.042 in German locale
|
" e.g. 1,042 in English and 1.042 in German locale
|
||||||
let g:airline#extensions#wordcount#formatter = 'default'
|
let g:airline#extensions#wordcount#formatter = 'default'
|
||||||
|
|
||||||
|
" enable reading time formatter
|
||||||
|
let g:airline#extensions#wordcount#enabled = 'readingtime'
|
||||||
|
|
||||||
" here is how you can define a 'foo' formatter:
|
" here is how you can define a 'foo' formatter:
|
||||||
" create a file in autoload/airline/extensions/wordcount/formatters/
|
" create a file in autoload/airline/extensions/wordcount/formatters/
|
||||||
" called foo.vim, which defines the following function signature:
|
" called foo.vim, which defines the following function signature:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user