What is a proper way to define functions using RPC? #26736
Unanswered
sigasigasiga
asked this question in
Q&A
Replies: 1 comment
-
I think |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've wrote a remote plugin that provides a Lua function that can be called by a neovim user.
Here's how it is currently implemented:
nvim_get_api_info
nvim_exec_lua
with this code:The implementation in the code can be found here if you're interested.
As you can see, this is not the most beautiful solution to function declaration problem. Is there a better way to accomplish this task?
Beta Was this translation helpful? Give feedback.
All reactions