itchyny/lightline.vim

middle active/inactive items missing from statusline

elig0n opened this issue · 7 comments

Items I set at g:lightline.active.middle or g:lightline.inactive.middle don't show up in the final statusline.

echo lightline#statusline(0)

shows no items after the middle highlight group, i.e.:

... %#LightlineLeft_active_1_2#%#LightlineMiddle_active#%=%#LightlineRight_active_2_3 ...

I see that several LightlineMiddle_* highlight groups were made available by the script .

let _ .= '%#LightlineMiddle_' . mode . '#%='

Source shows indeed that nothing is parsed for being added to the LightlineMiddle_ highlight in s:line

There is no place to show, so this is simply not supposed. What's your expectation?

There is no place to show, so this is simply not supposed. What's your expectation?

What's wrong with how it is ? just show it anyway ...

You can add components to the left group, it will be rendered in the middle colors if the array size is bigger than that of the color list of the colorscheme pallete.

I don't like that behavior.

Please describe the reason.

I want to keep the styles of the 'left' group intact for what is defined for them regardless of current colorscheme which I change often.

Also please consider adding a source comment or documentation for what happens with middle just like you explained for the sake of others

I don't think I'm going to accept this proposal, closing the issue.