diff options
author | Tobias Menzi | 2022-06-27 08:09:34 +0000 |
---|---|---|
committer | GitHub | 2022-06-27 08:09:34 +0000 |
commit | 8dc86beabd9334d013291656313cb33a88754c42 (patch) | |
tree | 8407d9e6d4a06e1bb2366a3bee44697c194ae4ac /helix-view/src | |
parent | a26943de4e421a453371aa53b3bb11a2baabff56 (diff) |
Implement cursorline (#2170)
* Implement cursorline
* Binary search possible lines
Diffstat (limited to 'helix-view/src')
-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 c5a458d7..a9741a33 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -121,6 +121,8 @@ pub struct Config { pub shell: Vec<String>, /// Line number mode. pub line_number: LineNumber, + /// Highlight the lines cursors are currently on. Defaults to false. + pub cursorline: bool, /// Gutters. Default ["diagnostics", "line-numbers"] pub gutters: Vec<GutterType>, /// Middle click paste support. Defaults to true. @@ -394,6 +396,7 @@ impl Default for Config { vec!["sh".to_owned(), "-c".to_owned()] }, line_number: LineNumber::Absolute, + cursorline: false, gutters: vec![GutterType::Diagnostics, GutterType::LineNumbers], middle_click_paste: true, auto_pairs: AutoPairConfig::default(), |