-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove `mlua` from the `dev-dependencies` * Test `api::notify()` * Fix `api::notify()`'s API * Test `api::notify()` w/ custom provider * Add an `Arena` argument to `nvim_notify` on 0.10 and Nightly * Directly implement `Error` for `types::Error` * Test that errors returned by `vim.notify` are propagated * Fix using `mlua` in CI * Don't test `notify_custom{_err}` on `v0.9.5` on macOS and Windows
- Loading branch information
Showing
12 changed files
with
96 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[target.x86_64-apple-darwin] | ||
rustflags = [ | ||
"-C", "link-arg=-undefined", | ||
"-C", "link-arg=dynamic_lookup", | ||
] | ||
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"] | ||
|
||
[target.aarch64-apple-darwin] | ||
rustflags = [ | ||
"-C", "link-arg=-undefined", | ||
"-C", "link-arg=dynamic_lookup", | ||
] | ||
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"] | ||
|
||
[target.x86_64-pc-windows-msvc] | ||
rustflags = ["-C", "link-args=/FORCE:MULTIPLE"] | ||
|
||
[target.aarch64-pc-windows-msvc] | ||
rustflags = ["-C", "link-args=/FORCE:MULTIPLE"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
use mlua::prelude::LuaFunction; | ||
use nvim_oxi::{mlua::lua, print, Result}; | ||
use nvim_oxi::{mlua, print, Result}; | ||
|
||
#[nvim_oxi::plugin] | ||
fn mlua() -> Result<()> { | ||
print!("Hello from nvim-oxi.."); | ||
let lua = lua(); | ||
let lua = mlua::lua(); | ||
let print: LuaFunction = lua.globals().get("print")?; | ||
print.call("..and goodbye from mlua!")?; | ||
print.call::<()>("..and goodbye from mlua!")?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters