file ingo back yo
This commit is contained in:
parent
ce5e2cb484
commit
d02726c0d6
|
@ -12,7 +12,7 @@ augroup END
|
|||
|
||||
" functions
|
||||
|
||||
function! GetStatus(isactive) "{{{
|
||||
function! GetStatus(isactive) abort "{{{
|
||||
" let l:linter = ale#statusline#Count(bufnr(''))
|
||||
let l:divider = '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >'
|
||||
let l:separator = '%#StatusLineSeparator# '
|
||||
|
@ -48,20 +48,6 @@ function! GetStatus(isactive) "{{{
|
|||
let l:statusline .= "%{&buftype == '' ? '' : ' '}%s"
|
||||
"}}}
|
||||
|
||||
" file info
|
||||
" if a:isactive == 1 "{{{
|
||||
" let l:statusline.=l:active
|
||||
" let l:statusline.=" %{strlen(&ft)?&ft:'none'} "
|
||||
" " let l:statusline.=l:separator . l:active
|
||||
" " let l:statusline.=' %{strlen(&fenc)?&fenc:&enc} '
|
||||
" " let l:statusline.=l:separator . l:active
|
||||
" " let l:statusline.=' %{&fileformat} '
|
||||
" " let l:statusline.=l:separator . l:active
|
||||
" " let l:statusline.=' %{&spelllang} '
|
||||
" let l:statusline.=l:separator
|
||||
" endif
|
||||
"}}}
|
||||
|
||||
" right/left divider
|
||||
let l:statusline.=l:separator "{{{
|
||||
" modified version
|
||||
|
@ -82,6 +68,21 @@ function! GetStatus(isactive) "{{{
|
|||
let l:statusline .= ' '
|
||||
"}}}
|
||||
|
||||
" file info
|
||||
if a:isactive == 1 "{{{
|
||||
" let l:statusline.=l:active
|
||||
let l:statusline.='%#StatusLineFileActive#'
|
||||
" let l:statusline.=" %{strlen(&ft)?&ft:'none'} "
|
||||
" let l:statusline.=l:separator . l:active
|
||||
let l:statusline.=' %{strlen(&fenc)?&fenc:&enc} '
|
||||
" let l:statusline.=l:separator . l:active
|
||||
let l:statusline.=' %{&fileformat} '
|
||||
let l:statusline.=l:separator . l:active
|
||||
" let l:statusline.=' %{&spelllang} '
|
||||
" let l:statusline.=l:separator
|
||||
endif
|
||||
"}}}
|
||||
|
||||
|
||||
" path/filename.extension
|
||||
if a:isactive "{{{
|
||||
|
|
Loading…
Reference in New Issue