summaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorThomas2022-04-20 01:44:32 +0000
committerGitHub2022-04-20 01:44:32 +0000
commit5d5b6bab9ba5211c8c146fb38276f968892e7882 (patch)
treee28f9861eb09e95629a392cf9f1160c7922584ca /helix-view
parent02426072cbe4b6272bf54d89f85598bb79a33729 (diff)
Add rulers option (#2060)
* Add color_column option * Rename to ruler Co-authored-by: DeviousStoat <devious@stoat.com>
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/editor.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index dd805c00..0c2fad2b 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -146,6 +146,8 @@ pub struct Config {
#[serde(default)]
pub search: SearchConfig,
pub lsp: LspConfig,
+ /// Column numbers at which to draw the rulers. Default to `[]`, meaning no rulers.
+ pub rulers: Vec<u16>,
}
#[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)]
@@ -285,6 +287,7 @@ impl Default for Config {
true_color: false,
search: SearchConfig::default(),
lsp: LspConfig::default(),
+ rulers: Vec::new(),
}
}
}