home: vim: fix icon for read-only files
This commit is contained in:
parent
1819c7077d
commit
d2e410de56
|
@ -63,7 +63,7 @@ let g:lightline#ale#indicator_ok='✓'
|
||||||
|
|
||||||
" Show a lock icon when editing a read-only file when it makes sense
|
" Show a lock icon when editing a read-only file when it makes sense
|
||||||
function! LightlineReadonly()
|
function! LightlineReadonly()
|
||||||
return &ft!~?'help\|vimfiler\|netrw' && &readonly ? '' : ''
|
return &ft!~?'help\|vimfiler\|netrw' && &readonly ? '🔒' : ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Show a '+' when the buffer is modified, '-' if not, when it makes sense
|
" Show a '+' when the buffer is modified, '-' if not, when it makes sense
|
||||||
|
|
Loading…
Reference in a new issue