home: vim: fix icon for read-only files

This commit is contained in:
Bruno BELANYI 2022-02-23 21:06:03 +01:00
parent 1819c7077d
commit d2e410de56

View file

@ -63,7 +63,7 @@ let g:lightline#ale#indicator_ok='✓'
" Show a lock icon when editing a read-only file when it makes sense
function! LightlineReadonly()
return &ft!~?'help\|vimfiler\|netrw' && &readonly ? '' : ''
return &ft!~?'help\|vimfiler\|netrw' && &readonly ? '🔒' : ''
endfunction
" Show a '+' when the buffer is modified, '-' if not, when it makes sense