Lightline.vim: Change background color of status bar only (to make it match the background of the terminal)

Created on 11 Jul 2016  路  6Comments  路  Source: itchyny/lightline.vim

Hi,
I use base16, and would want the statusbar to have same color, or to appear transparent. Now it has a dark tint to it. Tried to find anything related in the docs, or issue. But came up empty.

screen shot 2016-07-11 at 16 17 55

Using Tmuxline, and managed to remove the background. And would love to do the same with Vim :-)

Thank you for the plugin though :-)

configuration

Most helpful comment

How about this configuration?

let s:palette = g:lightline#colorscheme#{g:lightline.colorscheme}#palette
let s:palette.normal.middle = [ [ 'NONE', 'NONE', 'NONE', 'NONE' ] ]
let s:palette.inactive.middle = s:palette.normal.middle
let s:palette.tabline.middle = s:palette.normal.middle

All 6 comments

How about this configuration?

let s:palette = g:lightline#colorscheme#{g:lightline.colorscheme}#palette
let s:palette.normal.middle = [ [ 'NONE', 'NONE', 'NONE', 'NONE' ] ]
let s:palette.inactive.middle = s:palette.normal.middle
let s:palette.tabline.middle = s:palette.normal.middle

Bossman

You're the boss man! :-D Much appreciated!

I never thought I'd find an answer for this, thanks man.

I'm getting Undefined variable: g:lightline#colorscheme#wombat#palette

has anything changed or am I just missing something?

@jonmackenzie just tried to solve the same issue,

for me the combination of this code, and the one from https://github.com/itchyny/lightline.vim/issues/381#issuecomment-523529581 worked.

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

image

even after putting the above block in my .vimrc, parts of the status line remain colored (specifically the grey parts)
image

Is there any way to make these parts transparent? I tried to set the grey color to same color as my background, but it produces this weird looking light blue instead, I assume it uses 16-colors instead of 256

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kbc8090 picture kbc8090  路  3Comments

yunlingz picture yunlingz  路  4Comments

linus345 picture linus345  路  3Comments

codepushr picture codepushr  路  3Comments

mrbig033 picture mrbig033  路  4Comments