Skip to content

Commit

Permalink
api: update CreateAutocmdOpts for nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Sep 30, 2023
1 parent 7a8b68e commit 015cc3e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions crates/oxi-api/src/opts/create_autocmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use crate::StringOrInt;
pub type ShouldDeleteAutocmd = bool;

/// Options passed to [`create_autocmd()`](crate::create_autocmd).
#[cfg(not(feature = "neovim-nightly"))]
#[derive(Clone, Debug, Default)]
#[repr(C)]
pub struct CreateAutocmdOpts {
Expand All @@ -21,21 +20,6 @@ pub struct CreateAutocmdOpts {
callback: Object,
}

/// Options passed to [`create_autocmd()`](crate::create_autocmd).
#[cfg(feature = "neovim-nightly")]
#[derive(Clone, Debug, Default)]
#[repr(C)]
pub struct CreateAutocmdOpts {
buffer: Object,
callback: Object,
command: Object,
desc: Object,
group: Object,
nested: Object,
once: Object,
pattern: Object,
}

impl CreateAutocmdOpts {
#[inline(always)]
pub fn builder() -> CreateAutocmdOptsBuilder {
Expand Down

0 comments on commit 015cc3e

Please sign in to comment.