Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/handlers.rs')
| -rw-r--r-- | helix-view/src/handlers.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/helix-view/src/handlers.rs b/helix-view/src/handlers.rs index 258ed89e..6aba17d6 100644 --- a/helix-view/src/handlers.rs +++ b/helix-view/src/handlers.rs @@ -9,6 +9,7 @@ pub mod completion; pub mod dap; pub mod diagnostics; pub mod lsp; +pub mod word_index; #[derive(Debug)] pub enum AutoSaveEvent { @@ -22,6 +23,7 @@ pub struct Handlers { pub signature_hints: Sender<lsp::SignatureHelpEvent>, pub auto_save: Sender<AutoSaveEvent>, pub document_colors: Sender<lsp::DocumentColorsEvent>, + pub word_index: word_index::Handler, } impl Handlers { @@ -46,8 +48,13 @@ impl Handlers { }; send_blocking(&self.signature_hints, event) } + + pub fn word_index(&self) -> &word_index::WordIndex { + &self.word_index.index + } } pub fn register_hooks(handlers: &Handlers) { lsp::register_hooks(handlers); + word_index::register_hooks(handlers); } |