diff options
author | Mathspy | 2022-06-30 09:26:00 +0000 |
---|---|---|
committer | GitHub | 2022-06-30 09:26:00 +0000 |
commit | d06800f1dd47315f5738c529d40d1e0952ee2115 (patch) | |
tree | 7359e27191a12f132fc882f40c0981fb5dc30939 /helix-view | |
parent | ed89f8897eab84bf7614a718d5d1e3ec5c57086c (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 'helix-view')
-rw-r--r-- | helix-view/src/editor.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index c160dd37..1ed27e99 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -161,6 +161,8 @@ pub struct Config { pub whitespace: WhitespaceConfig, /// Vertical indent width guides. pub indent_guides: IndentGuidesConfig, + /// Whether to color modes with different colors. Defaults to `false`. + pub color_modes: bool, } #[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)] @@ -414,6 +416,7 @@ impl Default for Config { rulers: Vec::new(), whitespace: WhitespaceConfig::default(), indent_guides: IndentGuidesConfig::default(), + color_modes: false, } } } |