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 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/helix-term/src/handlers.rs b/helix-term/src/handlers.rs index 25cab6a3..18297bfe 100644 --- a/helix-term/src/handlers.rs +++ b/helix-term/src/handlers.rs @@ -1,11 +1,13 @@ use std::sync::Arc; use arc_swap::ArcSwap; +use diagnostics::PullAllDocumentsDiagnosticHandler; use helix_event::AsyncHook; use crate::config::Config; use crate::events; use crate::handlers::auto_save::AutoSaveHandler; +use crate::handlers::diagnostics::PullDiagnosticsHandler; use crate::handlers::signature_help::SignatureHelpHandler; pub use helix_view::handlers::{word_index, Handlers}; @@ -14,7 +16,7 @@ use self::document_colors::DocumentColorsHandler; mod auto_save; pub mod completion; -mod diagnostics; +pub mod diagnostics; mod document_colors; mod prompt; mod signature_help; @@ -28,6 +30,8 @@ pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers { let auto_save = AutoSaveHandler::new().spawn(); let document_colors = DocumentColorsHandler::default().spawn(); let word_index = word_index::Handler::spawn(); + let pull_diagnostics = PullDiagnosticsHandler::default().spawn(); + let pull_all_documents_diagnostics = PullAllDocumentsDiagnosticHandler::default().spawn(); let handlers = Handlers { completions: helix_view::handlers::completion::CompletionHandler::new(event_tx), @@ -35,6 +39,8 @@ pub fn setup(config: Arc<ArcSwap<Config>>) -> Handlers { auto_save, document_colors, word_index, + pull_diagnostics, + pull_all_documents_diagnostics, }; helix_view::handlers::register_hooks(&handlers); |