-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Make gutters padding optional #2996
Conversation
5d84f97
to
ff9aff1
Compare
match gutter_type { | ||
GutterType::Diagnostics => gutter::diagnostics_or_breakpoints, | ||
GutterType::LineNumbers => gutter::line_numbers, | ||
GutterType::Padding => gutter::padding, | ||
}, |
There was a problem hiding this comment.
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"]` | |
There was a problem hiding this comment.
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.
ff9aff1
to
5f4af43
Compare
If all gutters are removed, there are still an extra one padding, would be nice to remove that to save some space.
5f4af43
to
4c076d2
Compare
If all gutters are removed, there are still an extra one padding, would be nice to remove that to save some space.
If all gutters are removed, there are still an extra one padding, would be nice
to remove that to save some space.