mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-02-21 17:18:27 +08:00
Add crypt indicator
If editing an encrypted file, add an indicator, that the file is encrypted
This commit is contained in:
@@ -54,6 +54,10 @@ function! airline#parts#mode()
|
||||
return get(w:, 'airline_current_mode', '')
|
||||
endfunction
|
||||
|
||||
function! airline#parts#crypt()
|
||||
return g:airline_detect_crypt && !empty(&key) ? g:airline_symbols.crypt : ''
|
||||
endfunction
|
||||
|
||||
function! airline#parts#paste()
|
||||
return g:airline_detect_paste && &paste ? g:airline_symbols.paste : ''
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user