mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-26 18:31:02 +08:00
Merge pull request #1897 from shayneholmes/wordcount-formatters
Search for wordcount formatters with extension
This commit is contained in:
commit
cbf264ff5f
|
@ -41,7 +41,7 @@ endfunction
|
||||||
" check user-defined formatter exists with appropriate functions, otherwise
|
" check user-defined formatter exists with appropriate functions, otherwise
|
||||||
" fall back to default
|
" fall back to default
|
||||||
if s:formatter !=# 'default'
|
if s:formatter !=# 'default'
|
||||||
execute 'runtime! autoload/airline/extensions/wordcount/formatters/'.s:formatter
|
execute 'runtime! autoload/airline/extensions/wordcount/formatters/'.s:formatter.'.vim'
|
||||||
if !exists('*airline#extensions#wordcount#formatters#{s:formatter}#to_string')
|
if !exists('*airline#extensions#wordcount#formatters#{s:formatter}#to_string')
|
||||||
if !exists('*airline#extensions#wordcount#formatters#{s:formatter}#format')
|
if !exists('*airline#extensions#wordcount#formatters#{s:formatter}#format')
|
||||||
let s:formatter = 'default'
|
let s:formatter = 'default'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user