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.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-term/src/handlers.rs b/helix-term/src/handlers.rs
index 18297bfe..3d72505b 100644
--- a/helix-term/src/handlers.rs
+++ b/helix-term/src/handlers.rs
@@ -14,6 +14,7 @@ pub use helix_view::handlers::{word_index, Handlers};
use self::document_colors::DocumentColorsHandler;
+mod auto_reload;
mod auto_save;
pub mod completion;
pub mod diagnostics;
@@ -25,7 +26,7 @@ mod snippet;
pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers {
events::register();
- let event_tx = completion::CompletionHandler::new(config).spawn();
+ let event_tx = completion::CompletionHandler::new(config.clone()).spawn();
let signature_hints = SignatureHelpHandler::new().spawn();
let auto_save = AutoSaveHandler::new().spawn();
let document_colors = DocumentColorsHandler::default().spawn();
@@ -51,5 +52,6 @@ pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers {
snippet::register_hooks(&handlers);
document_colors::register_hooks(&handlers);
prompt::register_hooks(&handlers);
+ auto_reload::register_hooks(&config.load().editor);
handlers
}