Skip to content

Commit 1491768

Browse files
committed
Enable color-modes by default
1 parent 88e1975 commit 1491768

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

book/src/configuration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Its settings will be merged with the configuration directory `config.toml` and t
6060
| `undercurl` | Set to `true` to override automatic detection of terminal undercurl support in the event of a false negative | `false` |
6161
| `rulers` | List of column positions at which to display the rulers. Can be overridden by language specific `rulers` in `languages.toml` file | `[]` |
6262
| `bufferline` | Renders a line at the top of the editor displaying open buffers. Can be `always`, `never` or `multiple` (only shown if more than one buffer is in use) | `never` |
63-
| `color-modes` | Whether to color the mode indicator with different colors depending on the mode itself | `false` |
63+
| `color-modes` | Whether to color the mode indicator with different colors depending on the mode itself | `true` |
6464
| `text-width` | Maximum line length. Used for the `:reflow` command and soft-wrapping if `soft-wrap.wrap-at-text-width` is set | `80` |
6565
| `workspace-lsp-roots` | Directories relative to the workspace root that are treated as LSP roots. Should only be set in `.helix/config.toml` | `[]` |
6666
| `default-line-ending` | The line ending to use for new documents. Can be `native`, `lf`, `crlf`, `ff`, `cr` or `nel`. `native` uses the platform's native line ending (`crlf` on Windows, otherwise `lf`). | `native` |
@@ -90,13 +90,13 @@ The `[editor.statusline]` key takes the following sub-keys:
9090

9191
| Key | Description | Default |
9292
| --- | --- | --- |
93-
| `left` | A list of elements aligned to the left of the statusline | `["spacer", "mode", "spinner", "file-name", "read-only-indicator", "file-modification-indicator"]` |
93+
| `left` | A list of elements aligned to the left of the statusline | `["mode", "spinner", "file-name", "read-only-indicator", "file-modification-indicator"]` |
9494
| `center` | A list of elements aligned to the middle of the statusline | `[]` |
9595
| `right` | A list of elements aligned to the right of the statusline | `["diagnostics", "selections", "register", "position", "file-encoding", "spacer"]` |
9696
| `separator` | The character used to separate elements in the statusline | `"│"` |
97-
| `mode.normal` | The text shown in the `mode` element for normal mode | `"NOR"` |
98-
| `mode.insert` | The text shown in the `mode` element for insert mode | `"INS"` |
99-
| `mode.select` | The text shown in the `mode` element for select mode | `"SEL"` |
97+
| `mode.normal` | The text shown in the `mode` element for normal mode | `" NOR "` |
98+
| `mode.insert` | The text shown in the `mode` element for insert mode | `" INS "` |
99+
| `mode.select` | The text shown in the `mode` element for select mode | `" SEL "` |
100100

101101
The following statusline elements can be configured:
102102

helix-view/src/editor.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ impl Default for StatusLineConfig {
420420

421421
Self {
422422
left: vec![
423-
E::Spacer,
424423
E::Mode,
425424
E::Spinner,
426425
E::FileName,
@@ -453,9 +452,9 @@ pub struct ModeConfig {
453452
impl Default for ModeConfig {
454453
fn default() -> Self {
455454
Self {
456-
normal: String::from("NOR"),
457-
insert: String::from("INS"),
458-
select: String::from("SEL"),
455+
normal: String::from(" NOR "),
456+
insert: String::from(" INS "),
457+
select: String::from(" SEL "),
459458
}
460459
}
461460
}
@@ -837,7 +836,7 @@ impl Default for Config {
837836
whitespace: WhitespaceConfig::default(),
838837
bufferline: BufferLine::default(),
839838
indent_guides: IndentGuidesConfig::default(),
840-
color_modes: false,
839+
color_modes: true,
841840
soft_wrap: SoftWrap {
842841
enable: Some(false),
843842
..SoftWrap::default()

0 commit comments

Comments
 (0)