pub struct GitSignsModule;Expand description
Git signs module.
Registers a GitSignsSource into the AnnotationSourceRegistry
so git diff hunks appear as gutter signs. Also registers hunk
navigation and operation commands (#668).
Implementations§
Trait Implementations§
Source§impl Default for GitSignsModule
impl Default for GitSignsModule
Source§impl Module for GitSignsModule
impl Module for GitSignsModule
Source§fn init(&mut self, ctx: &ModuleContext) -> ProbeResult
fn init(&mut self, ctx: &ModuleContext) -> ProbeResult
Initialize module (Linux equivalent:
probe() function). Read moreSource§fn exit(&mut self) -> Result<(), ModuleError>
fn exit(&mut self) -> Result<(), ModuleError>
Cleanup module (Linux equivalent:
remove() function). Read moreSource§fn keybindings(&self) -> Vec<KeybindingRegistration>
fn keybindings(&self) -> Vec<KeybindingRegistration>
Get keybinding registrations.
Source§fn api_version(&self) -> Version
fn api_version(&self) -> Version
Required kernel API version. Read more
Source§fn dependencies(&self) -> Vec<ModuleId>
fn dependencies(&self) -> Vec<ModuleId>
Required dependencies (must be loaded before this module). Read more
Source§fn optional_dependencies(&self) -> Vec<ModuleId>
fn optional_dependencies(&self) -> Vec<ModuleId>
Optional dependencies (load before if available, but not required). Read more
Source§fn extension_kinds(&self) -> &[&'static str]
fn extension_kinds(&self) -> &[&'static str]
Extension kinds pushed by this module via
ExtensionStateBridge (#584). Read moreSource§fn version_constraints(&self) -> Vec<(ModuleId, &'static str)>
fn version_constraints(&self) -> Vec<(ModuleId, &'static str)>
Version constraints on dependencies (#619). Read more
Source§fn on_all_loaded(&mut self, _ctx: &ModuleContext)
fn on_all_loaded(&mut self, _ctx: &ModuleContext)
Called after ALL modules are loaded (post-init phase). Read more
Source§fn on_buffer_focus(&mut self, _buffer_id: BufferId, _ctx: &ModuleContext)
fn on_buffer_focus(&mut self, _buffer_id: BufferId, _ctx: &ModuleContext)
Called when session focuses on a buffer. Read more
Source§fn on_unload(&mut self) -> Result<(), ModuleError>
fn on_unload(&mut self) -> Result<(), ModuleError>
Called before module unload for cleanup. Read more
Source§fn commands(&self) -> Vec<CommandRegistration>
fn commands(&self) -> Vec<CommandRegistration>
Get command registrations.
Source§fn event_handlers(&self) -> Vec<EventHandlerRegistration>
fn event_handlers(&self) -> Vec<EventHandlerRegistration>
Get event handler registrations.
Source§fn supports_hot_reload(&self) -> bool
fn supports_hot_reload(&self) -> bool
Whether this module supports hot reload. Read more
Source§fn restore_state(&mut self, _state: &[u8]) -> Result<(), ModuleError>
fn restore_state(&mut self, _state: &[u8]) -> Result<(), ModuleError>
Restore module state after hot reload. Read more
Auto Trait Implementations§
impl Freeze for GitSignsModule
impl RefUnwindSafe for GitSignsModule
impl Send for GitSignsModule
impl Sync for GitSignsModule
impl Unpin for GitSignsModule
impl UnsafeUnpin for GitSignsModule
impl UnwindSafe for GitSignsModule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more