aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/events.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/events.rs')
-rw-r--r--helix-view/src/events.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/helix-view/src/events.rs b/helix-view/src/events.rs
new file mode 100644
index 00000000..8b789cc0
--- /dev/null
+++ b/helix-view/src/events.rs
@@ -0,0 +1,9 @@
+use helix_core::Rope;
+use helix_event::events;
+
+use crate::{Document, ViewId};
+
+events! {
+ DocumentDidChange<'a> { doc: &'a mut Document, view: ViewId, old_text: &'a Rope }
+ SelectionDidChange<'a> { doc: &'a mut Document, view: ViewId }
+}