mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-13 14:03:51 -05:00
'no ft' in example
This commit is contained in:
@@ -331,7 +331,7 @@ Here's my setting. I use the patched font for vim-powerline.
|
|||||||
return winwidth('.') > 60 ? &fileformat : ''
|
return winwidth('.') > 60 ? &fileformat : ''
|
||||||
endfunction
|
endfunction
|
||||||
function! MyFiletype()
|
function! MyFiletype()
|
||||||
return winwidth('.') > 60 ? &filetype: ''
|
return winwidth('.') > 60 ? (strlen(&filetype) ? &filetype : 'no ft') : ''
|
||||||
endfunction
|
endfunction
|
||||||
function! MyFileencoding()
|
function! MyFileencoding()
|
||||||
return winwidth('.') > 60 ? (strlen(&fenc) ? &fenc : &enc) : ''
|
return winwidth('.') > 60 ? (strlen(&fenc) ? &fenc : &enc) : ''
|
||||||
|
|||||||
Reference in New Issue
Block a user