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 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/helix-view/src/handlers.rs b/helix-view/src/handlers.rs index 352abb88..e2848f26 100644 --- a/helix-view/src/handlers.rs +++ b/helix-view/src/handlers.rs @@ -7,11 +7,17 @@ use crate::{DocumentId, Editor, ViewId}; pub mod dap; pub mod lsp; +#[derive(Debug)] +pub enum AutoSaveEvent { + DocumentChanged { save_after: u64 }, + LeftInsertMode, +} + pub struct Handlers { // only public because most of the actual implementation is in helix-term right now :/ pub completions: Sender<lsp::CompletionEvent>, pub signature_hints: Sender<lsp::SignatureHelpEvent>, - pub auto_save: Sender<u64>, + pub auto_save: Sender<AutoSaveEvent>, } impl Handlers { |