From 225e8ccf31ac554ae0977b4359c50edb2670594e Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 23 Nov 2021 12:56:46 +0900 Subject: Extract gutters into helix-view --- helix-view/src/gutter.rs | 95 ++++++++++++++++++++++++++++++++++++++++++++++++ helix-view/src/lib.rs | 1 + helix-view/src/view.rs | 24 ++++++++++-- 3 files changed, 116 insertions(+), 4 deletions(-) create mode 100644 helix-view/src/gutter.rs (limited to 'helix-view/src') diff --git a/helix-view/src/gutter.rs b/helix-view/src/gutter.rs new file mode 100644 index 00000000..86773c1d --- /dev/null +++ b/helix-view/src/gutter.rs @@ -0,0 +1,95 @@ +use std::fmt::Write; + +use crate::{editor::Config, graphics::Style, Document, Theme, View}; + +pub type GutterFn<'doc> = Box Option