From edbeec006f7bffe80209f4e16d35cee41a03e5fd Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 7 Jan 2023 03:37:02 -0500 Subject: [PATCH] vim: Use consistent lightline background color --- vim/.vimrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index b71a5a2..142bc49 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -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 ========= " ============================