add support for configurable whitespace checking algorithms and default it to the simplest one. resolves #484

This commit is contained in:
Bailey Ling
2014-04-19 14:27:14 -04:00
parent abee990d30
commit e49eac95a3
2 changed files with 25 additions and 8 deletions

View File

@@ -289,7 +289,7 @@ tagbar <https://github.com/majutsushi/tagbar>
let g:airline#extensions#tagbar#enabled = 1
<
* change how tags are displayed (:help tagbar-statusline) >
let g:airline#extensions#tagbar#flags = '' "default
let g:airline#extensions#tagbar#flags = '' (default)
let g:airline#extensions#tagbar#flags = 'f'
let g:airline#extensions#tagbar#flags = 's'
let g:airline#extensions#tagbar#flags = 'p'
@@ -349,6 +349,14 @@ eclim <https://eclim.org>
* enable/disable detection of whitespace errors. >
let g:airline#extensions#whitespace#enabled = 1
<
* customize the type of mixed indent checking to perform. >
" must be all spaces or all tabs before the first non-whitespace character
let g:airline#extensions#whitespace#mixed_indent_algo = 0 (default)
" certain number of spaces are allowed after tabs, but not in between
" this algorithm works well for /** */ style comments in a tab-indented file
let g:airline#extensions#whitespace#mixed_indent_algo = 1
<
* customize the whitespace symbol. >
let g:airline#extensions#whitespace#symbol = '!'
<