From ef36a100af49e67d8a7c79aeb0175e60013eec0a Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 23 Feb 2022 21:06:03 +0100 Subject: [PATCH] home: vim: fix icon for read-only files --- home/vim/plugin/settings/lightline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/vim/plugin/settings/lightline.vim b/home/vim/plugin/settings/lightline.vim index feaa733..039b2b3 100644 --- a/home/vim/plugin/settings/lightline.vim +++ b/home/vim/plugin/settings/lightline.vim @@ -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