aboutsummaryrefslogtreecommitdiff
path: root/book
diff options
context:
space:
mode:
authorMathspy2022-06-30 09:26:00 +0000
committerGitHub2022-06-30 09:26:00 +0000
commitd06800f1dd47315f5738c529d40d1e0952ee2115 (patch)
tree7359e27191a12f132fc882f40c0981fb5dc30939 /book
parented89f8897eab84bf7614a718d5d1e3ec5c57086c (diff)
Add mode specific styles (#2676)
* Add mode specific styles In similar vein to neovim's lualine and similar statusline packages this allows helix users to style their mode based on which mode it is thus making each mode more visually distinct at a glance * Add an example based on rosepine * Add editor.colors-mode config * Document statusline mode styles
Diffstat (limited to 'book')
-rw-r--r--book/src/configuration.md1
-rw-r--r--book/src/themes.md7
2 files changed, 6 insertions, 2 deletions
diff --git a/book/src/configuration.md b/book/src/configuration.md
index af85379f..1cc8602a 100644
--- a/book/src/configuration.md
+++ b/book/src/configuration.md
@@ -46,6 +46,7 @@ hidden = false
| `auto-info` | Whether to display infoboxes | `true` |
| `true-color` | Set to `true` to override automatic detection of terminal truecolor support in the event of a false negative. | `false` |
| `rulers` | List of column positions at which to display the rulers. Can be overridden by language specific `rulers` in `languages.toml` file. | `[]` |
+| `color-modes` | Whether to color the mode indicator with different colors depending on the mode itself | `false` |
### `[editor.lsp]` Section
diff --git a/book/src/themes.md b/book/src/themes.md
index 6c6393de..06f920d3 100644
--- a/book/src/themes.md
+++ b/book/src/themes.md
@@ -219,6 +219,9 @@ These scopes are used for theming the editor interface.
| `ui.linenr.selected` | Line number for the line the cursor is on |
| `ui.statusline` | Statusline |
| `ui.statusline.inactive` | Statusline (unfocused document) |
+| `ui.statusline.normal` | Statusline mode during normal mode ([only if `editor.color-modes` is enabled][editor-section]) |
+| `ui.statusline.insert` | Statusline mode during insert mode ([only if `editor.color-modes` is enabled][editor-section]) |
+| `ui.statusline.select` | Statusline mode during select mode ([only if `editor.color-modes` is enabled][editor-section]) |
| `ui.popup` | Documentation popups (e.g space-k) |
| `ui.popup.info` | Prompt for multiple key options |
| `ui.window` | Border lines separating splits |
@@ -226,7 +229,7 @@ These scopes are used for theming the editor interface.
| `ui.text` | Command prompts, popup text, etc. |
| `ui.text.focus` | |
| `ui.text.info` | The key: command text in `ui.popup.info` boxes |
-| `ui.virtual.ruler` | Ruler columns (see the [`editor.rulers` config][rulers-config])|
+| `ui.virtual.ruler` | Ruler columns (see the [`editor.rulers` config][editor-section])|
| `ui.virtual.whitespace` | Visible white-space characters |
| `ui.virtual.indent-guide` | Vertical indent width guides |
| `ui.menu` | Code and command completion menus |
@@ -246,4 +249,4 @@ These scopes are used for theming the editor interface.
| `diagnostic.warning` | Diagnostics warning (editing area) |
| `diagnostic.error` | Diagnostics error (editing area) |
-[rulers-config]: ./configuration.md#editor-section
+[editor-section]: ./configuration.md#editor-section