Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to use oxi::api::call_function() but I'm not sure how to map into a dictionary #102

Closed
SeniorMars opened this issue Mar 5, 2023 · 1 comment

Comments

@SeniorMars
Copy link

Specifically, I'm trying to get vim.fn.wordcount() which returns a table, but I'm not how to get this table. I'm trying to debug, but nothing is happening. Any tips?

@SeniorMars
Copy link
Author

SeniorMars commented Mar 18, 2023

I came back to this, and I was using the 0.1.0 release. Works in 0.2.2. Thanks!

This works now:

    let result: Dictionary = api::call_function("wordcount", vec![]).expect("call_function failed");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant