pub struct SetKeymapOptsBuilder { /* private fields */ }
Expand description

Builder for SetKeymapOpts.

Implementations

Whether the keymap argument is an expression.

Whether the right-hand side of the mapping shouldn’t be remappable.

For buffer-local mappings, whether Neovim should wait for more characters to be typed if there’s a global mapping that could also match. See :h map-nowait for more details.

When expr is true, this option can be used to replace the keycodes in the resulting string (see nvim_oxi::api::replace_termcodes).

Whether to remap characters in the right-hand side by expanding the <sid> script tag.

Whether the keymap should be silent.

If true setting the keymap fill fail if another keymap with the same left-hand side already exists.

A function to call when the mapping is executed.

A description for the keymap.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.