Add spell detection

This commit is contained in:
David Terei
2016-03-21 23:52:04 -07:00
parent 410429a95c
commit ae4a978509
5 changed files with 20 additions and 3 deletions

View File

@@ -175,6 +175,10 @@ function! airline#check_mode(winnr)
call add(l:mode, 'crypt')
endif
if g:airline_detect_spell && &spell
call add(l:mode, 'spell')
endif
if &readonly || ! &modifiable
call add(l:mode, 'readonly')
endif