You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's my first completely useless neovim plugin[1] in Rust! I've been using it to test/dictate the design choices in my patches for neovim-lib. It relies on PR #4 and another yet-to-be PR currently in my fork of neovim-lib.
One thing this project brought to light is argument parsing. I wrote a couple functions to extract usize and String from neovim_lib::rpc::Value[2], and I see src/rpc/model.rs defines a couple macros along the same lines. I think it would be worthwhile for neovim_lib to expose this functionality.
Anyway, wanted to submit this for review as a working example and possible template for other plugins.
About unwrap Value - i have plan to move back to rmpv library Value, Value in this library have methods for extracting simple values, for example as_u64rmp::Value, together with From converters. Will it solve this issue?
Here's my first completely useless neovim plugin[1] in Rust! I've been using it to test/dictate the design choices in my patches for neovim-lib. It relies on PR #4 and another yet-to-be PR currently in my fork of neovim-lib.
One thing this project brought to light is argument parsing. I wrote a couple functions to extract
usize
andString
fromneovim_lib::rpc::Value
[2], and I seesrc/rpc/model.rs
defines a couple macros along the same lines. I think it would be worthwhile forneovim_lib
to expose this functionality.Anyway, wanted to submit this for review as a working example and possible template for other plugins.
Cheers!
[1]: https://github.com/boxofrox/neovim-scorched-earth
[2]: https://github.com/boxofrox/neovim-scorched-earth/blob/master/src/args.rs
The text was updated successfully, but these errors were encountered: