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.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/helix-term/src/handlers.rs b/helix-term/src/handlers.rs index 31e15330..b580e678 100644 --- a/helix-term/src/handlers.rs +++ b/helix-term/src/handlers.rs @@ -6,10 +6,8 @@ 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; @@ -21,12 +19,12 @@ mod snippet; pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers { events::register(); - let completions = CompletionHandler::new(config).spawn(); + let event_tx = completion::CompletionHandler::new(config).spawn(); let signature_hints = SignatureHelpHandler::new().spawn(); let auto_save = AutoSaveHandler::new().spawn(); let handlers = Handlers { - completions, + completions: helix_view::handlers::completion::CompletionHandler::new(event_tx), signature_hints, auto_save, }; |