From 30ac5869dfc514696085063f5c84d4be1aebf781 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 30 Nov 2021 17:55:40 +0900 Subject: dap: Extract diagnostics gutter into gutters.rs --- helix-view/src/gutter.rs | 62 +++++++++++++++++++++++++++++++++++++++++++++++- helix-view/src/view.rs | 6 ++++- 2 files changed, 66 insertions(+), 2 deletions(-) (limited to 'helix-view') diff --git a/helix-view/src/gutter.rs b/helix-view/src/gutter.rs index 8dc243c3..ab5c6d16 100644 --- a/helix-view/src/gutter.rs +++ b/helix-view/src/gutter.rs @@ -1,6 +1,9 @@ use std::fmt::Write; -use crate::{graphics::Style, Document, Editor, Theme, View}; +use crate::{ + graphics::{Color, Modifier, Style}, + Document, Editor, Theme, View, +}; pub type GutterFn<'doc> = Box Option