file ingo back yo

This commit is contained in:
ManjaroOne666 2018-05-20 16:44:14 +01:00
parent ce5e2cb484
commit d02726c0d6
1 changed files with 16 additions and 15 deletions

View File

@ -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 "{{{