Skip to content

Commit

Permalink
api: update SetKeymapOpts for nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Sep 30, 2023
1 parent 015cc3e commit bfc446c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions crates/oxi-api/src/opts/set_keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::ToFunction;

/// Options passed to [`Buffer::set_keymap()`](crate::Buffer::set_keymap)
/// and [`set_keymap()`](crate::set_keymap).
#[cfg(not(feature = "neovim-nightly"))]
#[derive(Clone, Debug, Default, PartialEq)]
#[repr(C)]
pub struct SetKeymapOpts {
Expand All @@ -19,23 +18,6 @@ pub struct SetKeymapOpts {
replace_keycodes: Object,
}

/// Options passed to [`Buffer::set_keymap()`](crate::Buffer::set_keymap)
/// and [`set_keymap()`](crate::set_keymap).
#[cfg(feature = "neovim-nightly")]
#[derive(Clone, Debug, Default, PartialEq)]
#[repr(C)]
pub struct SetKeymapOpts {
noremap: Object,
nowait: Object,
silent: Object,
script: Object,
expr: Object,
unique: Object,
callback: Object,
desc: Object,
replace_keycodes: Object,
}

impl SetKeymapOpts {
#[inline(always)]
/// Creates a new [`SetKeymapOptsBuilder`].
Expand Down

0 comments on commit bfc446c

Please sign in to comment.