helix/helix-view/src/events.rs

11 lines
339 B
Rust
Raw Normal View History

2023-12-01 07:03:26 +08:00
use helix_core::Rope;
use helix_event::events;
use crate::{Document, DocumentId, Editor, ViewId};
2023-12-01 07:03:26 +08:00
events! {
DocumentDidChange<'a> { doc: &'a mut Document, view: ViewId, old_text: &'a Rope }
SelectionDidChange<'a> { doc: &'a mut Document, view: ViewId }
DiagnosticsDidChange<'a> { editor: &'a mut Editor, doc: DocumentId }
2023-12-01 07:03:26 +08:00
}