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, 6 insertions, 0 deletions
diff --git a/helix-term/src/handlers.rs b/helix-term/src/handlers.rs index 24d8491b..c7d71526 100644 --- a/helix-term/src/handlers.rs +++ b/helix-term/src/handlers.rs @@ -10,9 +10,12 @@ use crate::handlers::signature_help::SignatureHelpHandler; pub use helix_view::handlers::Handlers; +use self::document_colors::DocumentColorsHandler; + mod auto_save; pub mod completion; mod diagnostics; +mod document_colors; mod signature_help; mod snippet; @@ -22,11 +25,13 @@ pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers { let event_tx = completion::CompletionHandler::new(config).spawn(); let signature_hints = SignatureHelpHandler::new().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, auto_save, + document_colors, }; helix_view::handlers::register_hooks(&handlers); @@ -35,5 +40,6 @@ pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers { auto_save::register_hooks(&handlers); diagnostics::register_hooks(&handlers); snippet::register_hooks(&handlers); + document_colors::register_hooks(&handlers); handlers } |