noib3 / nvim-oxi

:link: Rust bindings to all things Neovim
https://crates.io/crates/nvim-oxi
MIT License
878 stars 43 forks source link

Failed to resolve: could not find `plugin` in `nvim_oxi` #153

Closed javiorfo closed 6 months ago

javiorfo commented 6 months ago

Hello, Are the examples updated? -> nvim-oxi examples

The documentation only shows module and test macros

I can use [nvim_oxi::module] macro but not [nvim_oxi::plugin]

This is a simple example with my conf which builds correctly:

[package]
name = "mylib"
version = "0.1.0"
edition = "2021"

[lib]
name = "mylib"
crate-type = ["cdylib"]

[dependencies]
nvim-oxi = { version = "0.4.2", features = [ "neovim-0-9", "libuv" ] }

In that case, please update the examples. Thanks

noib3 commented 6 months ago

The examples refer to the code in main, where the module macro has been renamed to plugin. I'll release v0.5.0 this weekend.