1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:40:05 +08:00

fix(statusline): fix statusline highlight

This commit is contained in:
Eric Wong 2024-05-06 19:21:26 +08:00
parent fd9a12aa67
commit fcaab916b5
2 changed files with 3 additions and 1 deletions

View File

@ -124,6 +124,8 @@ function! s:fix_colorschem_in_SpaceVim() abort
hi VertSplit guibg=#282c34 guifg=#181A1F
hi SPCFloatBorder guibg=#282c34 guifg=#181A1F
hi SPCNormalFloat guifg=#abb2bf guibg=#282c34
hi clear StatusLineNC
hi link StatusLineNC Normal
elseif g:colors_name ==# 'jellybeans'
hi VertSplit guibg=#151515 guifg=#080808
elseif g:colors_name ==# 'nord'

View File

@ -682,7 +682,7 @@ function! s:inactive() abort
let l .= '%{ get(w:, "winwidth", 150) < ' . base . ' ? "" : (" ' . s:STATUSLINE.eval(sec) . ' ' . s:ilsep . '")}'
endfor
if get(w:, 'winwidth', 150) > base + 10
let l .= join(['%=', '%{" " . &ff}', '%{(&fenc!=""?&fenc:&enc) . " "}', ' %P '], s:irsep)
let l .= join(['%=', '%{" " . g:_spacevim_statusline_fileformat . " "}', '%{" " . (&fenc!=""?&fenc:&enc) . " "}', ' %P '], s:irsep)
endif
return l
endfunction