1
0
forked from extern/nix-config

vim: Use consistent lightline background color

This commit is contained in:
Donovan Glover 2023-01-07 03:37:02 -05:00
parent 36470f2b24
commit edbeec006f
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -171,6 +171,20 @@ else
let g:lightline.colorscheme = 'Tomorrow_Night'
endif
" Make background color of lightline match terminal
" https://github.com/itchyny/lightline.vim/issues/168
autocmd VimEnter * call SetupLightlineColors()
function SetupLightlineColors() abort
" transparent background in statusbar
let l:palette = lightline#palette()
let l:palette.normal.middle = [ [ 'NONE', 'NONE', 'NONE', 'NONE' ] ]
let l:palette.inactive.middle = l:palette.normal.middle
let l:palette.tabline.middle = l:palette.normal.middle
call lightline#colorscheme()
endfunction
" ============================
" ========= keybinds =========
" ============================