Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/events.rs')
| -rw-r--r-- | helix-view/src/events.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/helix-view/src/events.rs b/helix-view/src/events.rs index 4a44beb3..0435e6a4 100644 --- a/helix-view/src/events.rs +++ b/helix-view/src/events.rs @@ -2,7 +2,7 @@ use helix_core::{ChangeSet, Rope}; use helix_event::events; use helix_lsp::LanguageServerId; -use crate::{Document, DocumentId, Editor, ViewId}; +use crate::{editor::Config, Document, DocumentId, Editor, ViewId}; events! { DocumentDidOpen<'a> { @@ -33,4 +33,12 @@ events! { editor: &'a mut Editor, server_id: LanguageServerId } + + // NOTE: this event is simple for now and is expected to change as the config system evolves. + // Ideally it would say what changed. + ConfigDidChange<'a> { + editor: &'a mut Editor, + old: &'a Config, + new: &'a Config + } } |