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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-term/src/handlers.rs b/helix-term/src/handlers.rs index c7d71526..a0982a49 100644 --- a/helix-term/src/handlers.rs +++ b/helix-term/src/handlers.rs @@ -6,6 +6,7 @@ use helix_event::AsyncHook; use crate::config::Config; use crate::events; use crate::handlers::auto_save::AutoSaveHandler; +use crate::handlers::inlay_hints::InlayHintHandler; use crate::handlers::signature_help::SignatureHelpHandler; pub use helix_view::handlers::Handlers; @@ -16,6 +17,7 @@ mod auto_save; pub mod completion; mod diagnostics; mod document_colors; +mod inlay_hints; mod signature_help; mod snippet; @@ -24,12 +26,14 @@ pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers { let event_tx = completion::CompletionHandler::new(config).spawn(); let signature_hints = SignatureHelpHandler::new().spawn(); + let inlay_hints = InlayHintHandler::default().spawn(); let auto_save = AutoSaveHandler::new().spawn(); let document_colors = DocumentColorsHandler::default().spawn(); let handlers = Handlers { completions: helix_view::handlers::completion::CompletionHandler::new(event_tx), signature_hints, + inlay_hints, auto_save, document_colors, }; @@ -41,5 +45,6 @@ pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers { diagnostics::register_hooks(&handlers); snippet::register_hooks(&handlers); document_colors::register_hooks(&handlers); + inlay_hints::register_hooks(&handlers); handlers } |