Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

middle active/inactive items missing from statusline #672

Closed
elig0n opened this issue Mar 11, 2024 · 7 comments
Closed

middle active/inactive items missing from statusline #672

elig0n opened this issue Mar 11, 2024 · 7 comments

Comments

@elig0n
Copy link
Contributor

elig0n commented Mar 11, 2024

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

@itchyny
Copy link
Owner

itchyny commented Mar 11, 2024

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

@elig0n
Copy link
Contributor Author

elig0n commented Mar 11, 2024

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 ...

@itchyny
Copy link
Owner

itchyny commented Mar 11, 2024

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.

@elig0n
Copy link
Contributor Author

elig0n commented Mar 11, 2024

I don't like that behavior.

@itchyny
Copy link
Owner

itchyny commented Mar 11, 2024

Please describe the reason.

@elig0n
Copy link
Contributor Author

elig0n commented Mar 11, 2024

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

@itchyny
Copy link
Owner

itchyny commented Mar 13, 2024

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

@itchyny itchyny closed this as not planned Won't fix, can't repro, duplicate, stale Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants