From bfc446cdf68a550479961d1142a216b8777ae013 Mon Sep 17 00:00:00 2001 From: Riccardo Mazzarini Date: Sun, 1 Oct 2023 00:16:31 +0200 Subject: [PATCH] api: update `SetKeymapOpts` for nightly --- crates/oxi-api/src/opts/set_keymap.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/crates/oxi-api/src/opts/set_keymap.rs b/crates/oxi-api/src/opts/set_keymap.rs index fa576643..78b4a91f 100644 --- a/crates/oxi-api/src/opts/set_keymap.rs +++ b/crates/oxi-api/src/opts/set_keymap.rs @@ -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 { @@ -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`].