diff --git a/crates/oxi-api/src/opts/set_highlight.rs b/crates/oxi-api/src/opts/set_highlight.rs index 2e960d65..ddf303f8 100644 --- a/crates/oxi-api/src/opts/set_highlight.rs +++ b/crates/oxi-api/src/opts/set_highlight.rs @@ -1,7 +1,6 @@ use oxi_types::{self as nvim, Object}; /// Options passed to [`set_hl()`](crate::set_hl). -#[cfg(not(feature = "neovim-nightly"))] #[derive(Clone, Debug, Default, PartialEq)] #[repr(C)] pub struct SetHighlightOpts { @@ -12,6 +11,8 @@ pub struct SetHighlightOpts { link: Object, blend: Object, cterm: Object, + #[cfg(feature = "neovim-nightly")] + force: Object, italic: Object, special: Object, ctermbg: Object, @@ -38,43 +39,6 @@ pub struct SetHighlightOpts { strikethrough: Object, } -#[cfg(feature = "neovim-nightly")] -#[derive(Clone, Debug, Default, PartialEq)] -#[repr(C)] -pub struct SetHighlightOpts { - bold: Object, - standout: Object, - strikethrough: Object, - underline: Object, - undercurl: Object, - underdouble: Object, - underdotted: Object, - underdashed: Object, - italic: Object, - reverse: Object, - #[cfg(any(feature = "neovim-0-9", feature = "neovim-nightly"))] - altfont: Object, - nocombine: Object, - default_: Object, - cterm: Object, - foreground: Object, - fg: Object, - background: Object, - bg: Object, - ctermfg: Object, - ctermbg: Object, - special: Object, - sp: Object, - link: Object, - global_link: Object, - fallback: Object, - blend: Object, - #[cfg(any(feature = "neovim-0-9", feature = "neovim-nightly"))] - fg_indexed: Object, - #[cfg(any(feature = "neovim-0-9", feature = "neovim-nightly"))] - bg_indexed: Object, -} - impl SetHighlightOpts { /// Creates a new [`SetHighlightOptsBuilder`]. #[inline]