Skip to content

Commit

Permalink
api: update SetExtmarkOpts for nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Sep 30, 2023
1 parent bfc446c commit db1e657
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions crates/oxi-api/src/opts/set_extmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::trait_utils::StringOrListOfStrings;
use crate::types::{ExtmarkHlMode, ExtmarkVirtTextPosition};

/// Options passed to [`Buffer::set_extmark()`](crate::Buffer::set_extmark).
#[cfg(not(feature = "neovim-nightly"))]
#[derive(Clone, Debug, Default)]
#[repr(C)]
pub struct SetExtmarkOpts {
Expand Down Expand Up @@ -38,41 +37,6 @@ pub struct SetExtmarkOpts {
cursorline_hl_group: Object,
}

/// Options passed to [`set_extmark()`](crate::set_extmark).
#[cfg(feature = "neovim-nightly")]
#[derive(Clone, Debug, Default)]
#[repr(C)]
pub struct SetExtmarkOpts {
id: Object,
/// The docs don't mention this but it's there.
end_line: Object,
end_row: Object,
end_col: Object,
hl_group: Object,
virt_text: Object,
virt_text_pos: Object,
virt_text_win_col: Object,
virt_text_hide: Object,
hl_eol: Object,
hl_mode: Object,
ephemeral: Object,
priority: Object,
right_gravity: Object,
end_right_gravity: Object,
virt_lines: Object,
virt_lines_above: Object,
virt_lines_leftcol: Object,
strict: Object,
sign_text: Object,
sign_hl_group: Object,
number_hl_group: Object,
line_hl_group: Object,
cursorline_hl_group: Object,
conceal: Object,
spell: Object,
ui_watched: Object,
}

#[derive(Clone, Default)]
pub struct SetExtmarkOptsBuilder(SetExtmarkOpts);

Expand Down

0 comments on commit db1e657

Please sign in to comment.