mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-22 20:01:26 +08:00
Add a function to disable whitespace-detection
Useful to call for particular file types (e.g., .tex files):
ftplugin/tex.vim:
call airline#extensions#whitespace#disable()
This commit is contained in:
committed by
Christian Brabandt
parent
7e6986651c
commit
3c6135d75f
@@ -489,6 +489,10 @@ eclim <https://eclim.org>
|
||||
* enable/disable detection of whitespace errors. >
|
||||
let g:airline#extensions#whitespace#enabled = 1
|
||||
<
|
||||
* disable detection of whitespace errors. >
|
||||
" useful to call for particular file types (e.g., in "ftplugin/*")
|
||||
silent! call airline#extensions#whitespace#disable
|
||||
<
|
||||
* 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)
|
||||
|
||||
Reference in New Issue
Block a user