mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-01 09:03:21 +08:00
Add crypt indicator
If editing an encrypted file, add an indicator, that the file is encrypted
This commit is contained in:
@@ -161,6 +161,10 @@ function! airline#check_mode(winnr)
|
||||
call add(l:mode, 'paste')
|
||||
endif
|
||||
|
||||
if g:airline_detect_crypt && !empty(&key)
|
||||
call add(l:mode, 'crypt')
|
||||
endif
|
||||
|
||||
if &readonly || ! &modifiable
|
||||
call add(l:mode, 'readonly')
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user