pub struct SetKeymapOptsBuilder { /* private fields */ }Expand description
Builder for SetKeymapOpts.
Implementations
sourceimpl SetKeymapOptsBuilder
impl SetKeymapOptsBuilder
sourcepub fn expr(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
pub fn expr(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
Whether the keymap argument is an expression.
sourcepub fn noremap(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
pub fn noremap(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
Whether the right-hand side of the mapping shouldn’t be remappable.
sourcepub fn nowait(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
pub fn nowait(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
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.
sourcepub fn replace_keycodes(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
pub fn replace_keycodes(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
When expr is true, this option can be
used to replace the keycodes in the resulting string (see
nvim_oxi::api::replace_termcodes).
sourcepub fn script(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
pub fn script(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
Whether to remap characters in the right-hand side by expanding the
<sid> script tag.
sourcepub fn silent(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
pub fn silent(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
Whether the keymap should be silent.
sourcepub fn unique(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
pub fn unique(&mut self, value: bool) -> &mut SetKeymapOptsBuilder
If true setting the keymap fill fail if another keymap with the same
left-hand side already exists.
sourceimpl SetKeymapOptsBuilder
impl SetKeymapOptsBuilder
sourcepub fn callback<F>(&mut self, fun: F) -> &mut SetKeymapOptsBuilderwhere
F: ToFunction<(), ()>,
pub fn callback<F>(&mut self, fun: F) -> &mut SetKeymapOptsBuilderwhere
F: ToFunction<(), ()>,
A function to call when the mapping is executed.
sourcepub fn desc(&mut self, desc: &str) -> &mut SetKeymapOptsBuilder
pub fn desc(&mut self, desc: &str) -> &mut SetKeymapOptsBuilder
A description for the keymap.
pub fn build(&mut self) -> SetKeymapOpts
Trait Implementations
sourceimpl Clone for SetKeymapOptsBuilder
impl Clone for SetKeymapOptsBuilder
sourcefn clone(&self) -> SetKeymapOptsBuilder
fn clone(&self) -> SetKeymapOptsBuilder
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Default for SetKeymapOptsBuilder
impl Default for SetKeymapOptsBuilder
sourcefn default() -> SetKeymapOptsBuilder
fn default() -> SetKeymapOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SetKeymapOptsBuilder
impl !Send for SetKeymapOptsBuilder
impl !Sync for SetKeymapOptsBuilder
impl Unpin for SetKeymapOptsBuilder
impl UnwindSafe for SetKeymapOptsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more