update
This commit is contained in:
parent
2adeef6d2c
commit
3f49ece0b1
3 changed files with 94 additions and 12 deletions
19
vimrc
19
vimrc
|
|
@ -690,8 +690,7 @@ function! GetLinterStatus(key) abort "{{{
|
|||
if has_key(l:linter, a:key)
|
||||
let l:statuscount = l:linter[a:key]
|
||||
endif
|
||||
" return l:statuscount
|
||||
return 3
|
||||
return l:statuscount
|
||||
endfunction
|
||||
"}}}
|
||||
|
||||
|
|
@ -1252,13 +1251,13 @@ function! GetStatus(isactive) abort "{{{
|
|||
let l:statusline.='%#StatusLineFileInfo#'
|
||||
" let l:statusline.=" %{strlen(&ft)?&ft:'none'} "
|
||||
" let l:statusline.=l:separator . l:active
|
||||
let l:statusline.=' %{strlen(&fenc)?&fenc:&enc} '
|
||||
let l:statusline.='%{strlen(&fenc)?&fenc:&enc}'
|
||||
" let l:statusline.=l:separator . l:active
|
||||
let l:statusline.=' %{&fileformat} '
|
||||
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}"
|
||||
let l:statusline.=' %{&fileformat}'
|
||||
let l:statusline.="%{strlen(expand('%:e')) > 1?' ' . expand('%:e'):''}"
|
||||
" let l:statusline.=l:separator . l:active
|
||||
" let l:statusline.=' %{&spelllang} '
|
||||
let l:statusline.=l:separator
|
||||
let l:statusline .= l:separator
|
||||
endif
|
||||
"}}}
|
||||
|
||||
|
|
@ -1290,7 +1289,7 @@ function! GetStatus(isactive) abort "{{{
|
|||
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')} "
|
||||
endif
|
||||
else
|
||||
let l:statusline .= ' %#StatusLineFileReadOnly#%r'
|
||||
let l:statusline .= ' %#StatusLineWarning#%r'
|
||||
let l:statusline.='%#StatusLineDir# '
|
||||
let l:statusline.="%{fnamemodify(expand('%:p:h'),':~')}/"
|
||||
let l:statusline.='%#StatusLineFile#'
|
||||
|
|
@ -1395,14 +1394,10 @@ hi def link StatusLineDotActive StatusLineDirActive
|
|||
hi def link StatusLineExt StatusLineDir
|
||||
hi def link StatusLineExtActive StatusLineDirActive
|
||||
|
||||
hi def link StatusLineFileReadOnly StatusLineNormal
|
||||
hi def link StatusLineFileReadOnlyActive WarningMsg
|
||||
hi def link StatusLineWarning Normal
|
||||
hi def link StatusLineWarning StatusLineNormal
|
||||
hi def link StatusLineWarningActive WarningMsg
|
||||
|
||||
hi TESTXX guibg=#ff0000 guifg=#ffffff
|
||||
hi def link Linter TESTXX
|
||||
|
||||
hi def link LinterDash Normal
|
||||
hi def link LinterDashActive Normal
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue