Skip to content

Commit

Permalink
api: update SetHighlightOpts for nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Sep 30, 2023
1 parent db1e657 commit 007bd5e
Showing 1 changed file with 2 additions and 38 deletions.
40 changes: 2 additions & 38 deletions crates/oxi-api/src/opts/set_highlight.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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,
Expand All @@ -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]
Expand Down

0 comments on commit 007bd5e

Please sign in to comment.