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

Make gutters padding optional #2996

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

pickfire
Copy link
Contributor

@pickfire pickfire commented Jul 7, 2022

If all gutters are removed, there are still an extra one padding, would be nice
to remove that to save some space.

asciicast

@pickfire pickfire force-pushed the optional-gutter-padding branch 2 times, most recently from 5d84f97 to ff9aff1 Compare July 7, 2022 15:41
Comment on lines +108 to +112
match gutter_type {
GutterType::Diagnostics => gutter::diagnostics_or_breakpoints,
GutterType::LineNumbers => gutter::line_numbers,
GutterType::Padding => gutter::padding,
},
Copy link
Contributor Author

@pickfire pickfire Jul 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why but I can't seemed to keep these as a variable gutter and merge it with above match, maybe function name is different?

@@ -38,7 +38,7 @@ hidden = false
| `shell` | Shell to use when running external commands. | Unix: `["sh", "-c"]`<br/>Windows: `["cmd", "/C"]` |
| `line-number` | Line number display: `absolute` simply shows each line's number, while `relative` shows the distance from the current line. When unfocused or in insert mode, `relative` will still show absolute line numbers. | `absolute` |
| `cursorline` | Highlight all lines with a cursor. | `false` |
| `gutters` | Gutters to display: Available are `diagnostics` and `line-numbers`, note that `diagnostics` also includes other features like breakpoints | `["diagnostics", "line-numbers"]` |
| `gutters` | Gutters to display: Available are `diagnostics` and `line-numbers` and `padding`, note that `diagnostics` also includes other features like breakpoints | `["diagnostics", "line-numbers", "padding"]` |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:set gutters diagnostics or :set gutters ["diagnostics"] doesn't seemed to work for me, the completion for it is also weird.

If all gutters are removed, there are still an extra one padding, would be nice
to remove that to save some space.
@archseer archseer merged commit e8214fb into helix-editor:master Jul 18, 2022
@pickfire pickfire deleted the optional-gutter-padding branch July 18, 2022 10:03
thomasskk pushed a commit to thomasskk/helix that referenced this pull request Sep 9, 2022
If all gutters are removed, there are still an extra one padding, would be nice
to remove that to save some space.
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.

None yet

2 participants