Skip to content

Commit

Permalink
implement incomplete completion requests
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalkuthe authored and the-mikedavis committed Feb 2, 2025
1 parent 4e0fc0e commit 5c1f3f8
Show file tree
Hide file tree
Showing 9 changed files with 702 additions and 441 deletions.
6 changes: 2 additions & 4 deletions helix-term/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
};
Expand Down
Loading

0 comments on commit 5c1f3f8

Please sign in to comment.