Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Customizable statusbar - multiple separators and colors #5868

Closed
quomat opened this issue Feb 7, 2023 · 3 comments
Closed

Customizable statusbar - multiple separators and colors #5868

quomat opened this issue Feb 7, 2023 · 3 comments
Labels
C-enhancement Category: Improvements

Comments

@quomat
Copy link

quomat commented Feb 7, 2023

Hi,
currently Helix's statusbar can be configured using a handful of components. There is also a separator support.
The most important component, mode indicator, can be colored using color-modes = true in the config.
Themes can set the following colors:

ui.statusline.inactive
ui.statusline.normal 
ui.statusline.insert
ui.statusline.select
ui.statusline.separator

However, this set of properties is limited. I would expect to be able to customize it like in the nvim plugin lualine. Reference images:

One particular problem I had is that the powerline separators can not be colored at all, so with the color-modes = true the slant lines are not colored. More generally, having the capability to color every component of the statusline would be helpful for theme creators.

Either:

  • we wait for the plugin support to make a similar plugin for Helix
  • add the statusbar customization to the core Helix

I think that Helix's strong side is that it's amazing without plugins and we already have this small set of statusline coloring properties, so I feel it is not that far of a stretch to extend the customization further.

@quomat quomat added the C-enhancement Category: Improvements label Feb 7, 2023
@CptPotato
Copy link
Contributor

For a mode separator with theming support there's already #5022.

@usagi-flow
Copy link
Contributor

I like the idea a lot and don't think this functionality should be a plugin.

This level of customization was a bit out of scope when we made the status line configurable (#2434): There wasn't even a colored mode back then.
However, I definitely believe the suggested configurability belongs to the existing feature.

I think it'd be great if we'd generalize the theming of the mode and mode separator, i.e. each element can, optionally, be styled (e.g. like the mode element, but it could also be styled differently).

I imagine a generic and realistic solution as follows:

  • We wouldn't just have "colored" and "not colored". For each status line element, we could define a reference to a theme entry.
    • Such references would be included in the existing status line configuration.
    • We could differentiate between a reference to a static color, and a reference to a set of mode colors.
  • We could, by default, keep the existing theme entries, but a user could define extra entries in their theme.
    • This would allow "colored" elements, "normal" elements, but also "emphasized"/"highlighted" (?) elements, just like with Lualine.

Any further feedback to this would be greatly appreciated. :)

@ItsSunnyMonster
Copy link

It seems that #5022 was closed last year without any reason. Are there still plans to support this?

@helix-editor helix-editor locked and limited conversation to collaborators Apr 13, 2024
@pascalkuthe pascalkuthe converted this issue into discussion #10402 Apr 13, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

4 participants