From 30539e9392381d4ae4c078de9e9aeee4c97082c2 Mon Sep 17 00:00:00 2001 From: luetage Date: Mon, 9 Jan 2023 12:29:20 +0100 Subject: [PATCH 1/2] disable theming of statusline separators --- book/src/themes.md | 1 - helix-term/src/ui/statusline.rs | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/book/src/themes.md b/book/src/themes.md index 015ec59b3f5e..9f28c8c2d557 100644 --- a/book/src/themes.md +++ b/book/src/themes.md @@ -265,7 +265,6 @@ These scopes are used for theming the editor interface. | `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.statusline.separator` | Separator character in statusline | | `ui.popup` | Documentation popups (e.g Space + k) | | `ui.popup.info` | Prompt for multiple key options | | `ui.window` | Border lines separating splits | diff --git a/helix-term/src/ui/statusline.rs b/helix-term/src/ui/statusline.rs index a25b4540d1f9..5482fabbb2f2 100644 --- a/helix-term/src/ui/statusline.rs +++ b/helix-term/src/ui/statusline.rs @@ -453,11 +453,7 @@ where { let sep = &context.editor.config().statusline.separator; - write( - context, - sep.to_string(), - Some(context.editor.theme.get("ui.statusline.separator")), - ); + write( context, sep.to_string(), None ); } fn render_spacer(context: &mut RenderContext, write: F) From 2a7bc249c517b28b91d3941d548ac9b6c7f7d7b4 Mon Sep 17 00:00:00 2001 From: luetage Date: Mon, 9 Jan 2023 16:04:27 +0100 Subject: [PATCH 2/2] fix format --- helix-term/src/ui/statusline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/statusline.rs b/helix-term/src/ui/statusline.rs index 5482fabbb2f2..bb48cc40bd57 100644 --- a/helix-term/src/ui/statusline.rs +++ b/helix-term/src/ui/statusline.rs @@ -453,7 +453,7 @@ where { let sep = &context.editor.config().statusline.separator; - write( context, sep.to_string(), None ); + write(context, sep.to_string(), None); } fn render_spacer(context: &mut RenderContext, write: F)