summaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/editor.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index e5ba0d51..ec3cedd6 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -21,10 +21,12 @@ use helix_core::Position;
use serde::Deserialize;
#[derive(Debug, Clone, PartialEq, Deserialize)]
-#[serde(rename_all = "kebab-case")]
+#[serde(rename_all = "kebab-case", default)]
pub struct Config {
/// Padding to keep between the edge of the screen and the cursor when scrolling. Defaults to 5.
pub scrolloff: usize,
+ /// Number of lines to scroll at once. Defaults to 3
+ pub scroll_lines: isize,
/// Mouse support. Defaults to true.
pub mouse: bool,
}
@@ -33,6 +35,7 @@ impl Default for Config {
fn default() -> Self {
Self {
scrolloff: 5,
+ scroll_lines: 3,
mouse: true,
}
}