summaryrefslogtreecommitdiff
path: root/helix-term/src/handlers.rs
diff options
context:
space:
mode:
authorPascal Kuthe2023-11-30 23:03:26 +0000
committerBlaž Hrastnik2024-01-23 02:20:19 +0000
commit13ed4f6c4748019787d24c2b686d417b71604242 (patch)
tree8263b77ee05a22dfc85410345069efb3668b1877 /helix-term/src/handlers.rs
parent7d7ace551cd58f0b6d65af7a6dfa8f896d94724a (diff)
Add hook/event system
Diffstat (limited to 'helix-term/src/handlers.rs')
-rw-r--r--helix-term/src/handlers.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/helix-term/src/handlers.rs b/helix-term/src/handlers.rs
new file mode 100644
index 00000000..ab2d724f
--- /dev/null
+++ b/helix-term/src/handlers.rs
@@ -0,0 +1,15 @@
+use std::sync::Arc;
+
+use arc_swap::ArcSwap;
+
+use crate::config::Config;
+use crate::events;
+
+
+ }
+pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers {
+ events::register();
+ let handlers = Handlers {
+ };
+ handlers
+}