Skip to main content

register_syntax_text_objects

Function register_syntax_text_objects 

Source
pub fn register_syntax_text_objects(
    registry: &mut CommandRegistry,
) -> SyntaxTextObjectIds
Expand description

Register the eight structural text objects on registry. Call once at boot (after the builtin grammar is registered); thread the returned ids into the keymap binder. Calling twice registers duplicates, so call exactly once.