Merge pull request #2093 from kazukazuinaina/add_wordcount_filetype

add plaintex filetype
This commit is contained in:
Christian Brabandt 2020-03-23 11:39:20 +01:00 committed by GitHub
commit 0278e9095d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ endfunction
" default filetypes:
function! airline#extensions#wordcount#apply(...)
let filetypes = get(g:, 'airline#extensions#wordcount#filetypes',
\ ['asciidoc', 'help', 'mail', 'markdown', 'org', 'rst', 'tex', 'text'])
\ ['asciidoc', 'help', 'mail', 'markdown', 'org', 'rst', 'plaintex', 'tex', 'text'])
" export current filetypes settings to global namespace
let g:airline#extensions#wordcount#filetypes = filetypes

View File

@ -1390,7 +1390,7 @@ vim-windowswap <https://github.com/wesQ3/vim-windowswap>
" The default value matches filetypes typically used for documentation
" such as markdown and help files. Default is:
let g:airline#extensions#wordcount#filetypes =
\ ['asciidoc', 'help', 'mail', 'markdown', 'org', 'rst', 'tex', 'text'])
\ ['asciidoc', 'help', 'mail', 'markdown', 'org', 'plaintex', 'rst', 'tex', 'text'])
" Use ['all'] to enable for all filetypes.
* defines the name of a formatter for word count will be displayed: >