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

Apply ui.gutter style to empty gutters #2032

Merged
merged 1 commit into from
Apr 12, 2022

Conversation

valpackett
Copy link
Contributor

The unstyled column on the left from the diagnostics_or_breakpoints gutter looks sad if you want to add a background to all gutters. Let's fix this.

Screen_2022-04-08-20:36:55

The unstyled column on the left from the diagnostics_or_breakpoints gutter
looks sad if you want to add a background to all gutters. Let's fix this.
@archseer
Copy link
Member

archseer commented Apr 9, 2022

That empty gutter should be a spacer gutter so that it can be configurable: users that want no space can remove it.

@valpackett
Copy link
Contributor Author

@archseer the one on the right? yeah currently it's not a gutter, I might work on turning that gap into a gutter next.

@the-mikedavis
Copy link
Member

I think archseer is referring to #1967, so the gutters could be

[editor]
gutters = ["spacer", "breakpoints", "diagnostics", "line-numbers"]

by default. Then you could configure your gutters to remove the space altogether.

@valpackett
Copy link
Contributor Author

Yes, but that would apply to the column on the right that I marked as "todo" on the screenshot.

The column on the left is not a spacer, it is diagnostics_or_breakpoints, this PR applies the ui.gutter style to that

@archseer
Copy link
Member

Ah I see, this applies the styling if gutter fn returns None 👍🏻

@archseer archseer merged commit d5c0866 into helix-editor:master Apr 12, 2022
@valpackett valpackett deleted the empty-gutter-style branch April 12, 2022 22:11
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

Successfully merging this pull request may close these issues.

3 participants