use crate::{DocumentId, ViewId}; pub enum CompletionEvent { /// Auto completion was triggered by typing a word char AutoTrigger { cursor: usize, doc: DocumentId, view: ViewId, }, /// Auto completion was triggered by typing a trigger char /// specified by the LSP TriggerChar { cursor: usize, doc: DocumentId, view: ViewId, }, /// A completion was manually requested (c-x) ManualTrigger { cursor: usize, doc: DocumentId, view: ViewId, }, /// Some text was deleted and the cursor is now at `pos` DeleteText { cursor: usize }, /// Invalidate the current auto completion trigger Cancel, }