Run Lua in Neovim
nvim_exec_luaExecute Lua code in a running Neovim instance to access plugin features without a dedicated tool. Pass arguments via ... and use return to retrieve results.
Instructions
Run a Lua chunk inside Neovim and return its value. The chunk receives its arguments through ... and must use return to send a value back. Use this to reach plugins that have no dedicated tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Values passed to the chunk as ... | |
| code | Yes | Lua source; use return to send a value back |