diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7a72ab0..5b79316 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -16,10 +16,12 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
- neovim: [v0.10.4, Nightly]
+ neovim: [v0.10.4, v0.11.1, Nightly]
include:
- neovim: v0.10.4
features: "--features neovim-0-10"
+ - neovim: v0.11.1
+ features: "--features neovim-0-11"
- neovim: Nightly
features: "--features neovim-nightly"
diff --git a/Cargo.toml b/Cargo.toml
index 6021373..36a34b2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,7 +43,8 @@ rustdoc-args = ["--cfg", "docsrs"]
[features]
neovim-0-10 = ["api/neovim-0-10"]
-neovim-nightly = ["neovim-0-10", "api/neovim-nightly"]
+neovim-0-11 = ["api/neovim-0-10", "api/neovim-0-11"]
+neovim-nightly = ["neovim-0-11", "api/neovim-nightly"]
libuv = ["dep:libuv"]
mlua = ["dep:mlua"]
diff --git a/build.rs b/build.rs
index df9078c..d2f3bab 100644
--- a/build.rs
+++ b/build.rs
@@ -1,6 +1,11 @@
-#[cfg(not(any(feature = "neovim-0-10", feature = "neovim-nightly")))]
+#[cfg(not(any(
+ feature = "neovim-0-10",
+ feature = "neovim-0-11",
+ feature = "neovim-nightly"
+)))]
compile_error!(
- "You must enable one of the features: neovim-0-10, neovim-nightly"
+ "You must enable one of the features: neovim-0-10, neovim-0-11, \
+ neovim-nightly"
);
fn main() {
diff --git a/crates/api/Cargo.toml b/crates/api/Cargo.toml
index 6cbd640..974895f 100644
--- a/crates/api/Cargo.toml
+++ b/crates/api/Cargo.toml
@@ -9,7 +9,8 @@ license.workspace = true
[features]
neovim-0-10 = []
-neovim-nightly = ["neovim-0-10"]
+neovim-0-11 = ["neovim-0-10"]
+neovim-nightly = ["neovim-0-11"]
[dependencies]
luajit = { workspace = true }
diff --git a/crates/api/src/deprecated.rs b/crates/api/src/deprecated.rs
index 4d59fd1..c1b218e 100644
--- a/crates/api/src/deprecated.rs
+++ b/crates/api/src/deprecated.rs
@@ -14,7 +14,7 @@ use crate::{Buffer, Window};
///
/// [1]: https://neovim.io/doc/user/api.html#nvim_exec()
#[cfg_attr(
- feature = "neovim-nightly",
+ feature = "neovim-0-11", // On 0.11 and Nightly.
deprecated(since = "0.5.0", note = "use `exec2` instead")
)]
pub fn exec(src: &str, output: bool) -> Result