Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/handlers.rs')
-rw-r--r--helix-term/src/handlers.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/helix-term/src/handlers.rs b/helix-term/src/handlers.rs
index d45809d3..fc927313 100644
--- a/helix-term/src/handlers.rs
+++ b/helix-term/src/handlers.rs
@@ -5,12 +5,14 @@ use helix_event::AsyncHook;
use crate::config::Config;
use crate::events;
+use crate::handlers::auto_save::AutoSaveHandler;
use crate::handlers::completion::CompletionHandler;
use crate::handlers::signature_help::SignatureHelpHandler;
pub use completion::trigger_auto_completion;
pub use helix_view::handlers::Handlers;
+mod auto_save;
pub mod completion;
mod signature_help;
@@ -19,11 +21,16 @@ pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers {
let completions = CompletionHandler::new(config).spawn();
let signature_hints = SignatureHelpHandler::new().spawn();
+ let auto_save = AutoSaveHandler::new().spawn();
+
let handlers = Handlers {
completions,
signature_hints,
+ auto_save,
};
+
completion::register_hooks(&handlers);
signature_help::register_hooks(&handlers);
+ auto_save::register_hooks(&handlers);
handlers
}