From 6764744ce9912a1f48502bf5ee025283e12fded5 Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 3 Oct 2022 17:07:04 +0200 Subject: Add option to skip the first indent guide (#3819) * Add option to skip the first indent guide * reorder skip_first option * change indent-guides.skip_first to a number * rename skip -> skip_levels * add skip_levels to the book * Update book/src/configuration.md Co-authored-by: A-Walrus <58790821+A-Walrus@users.noreply.github.com> * Update helix-term/src/ui/editor.rs Co-authored-by: Michael Davis Co-authored-by: Robin Co-authored-by: A-Walrus <58790821+A-Walrus@users.noreply.github.com> Co-authored-by: Michael Davis --- helix-view/src/editor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'helix-view/src/editor.rs') diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index e144a830..f21244a9 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -552,15 +552,17 @@ impl Default for WhitespaceCharacters { } #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] -#[serde(default)] +#[serde(default, rename_all = "kebab-case")] pub struct IndentGuidesConfig { pub render: bool, pub character: char, + pub skip_levels: u16, } impl Default for IndentGuidesConfig { fn default() -> Self { Self { + skip_levels: 0, render: false, character: '│', } -- cgit v1.2.3-70-g09d2