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
@teto and I are working on promoting LuaRocks for Neovim plugin distribution, using the luarocks-tag-release GitHub action - in the hopes of solving some pain points in the current plugin ecosystem.
Neovim is bundled with LuaJIT, and can act as a Lua interpreter with the nvim -l command.
It could be useful to be able to configure luarocks to use Neovim with the -l flag as a Lua interpreter.
Here are some use cases I have in mind:
Test suites that depend on Neovim's Lua API could be run using busted.
Plugin managers could shell out to luarocks after configuring it to use Neovim as an interpreter.
A generic API for this could look something like this:
To work with busted, some additional configuration options might be necessary. For example, lua -e stat may need to be translated to nvim -c lua stat - not sure if this is feasible to do on the LuaRocks side.
Alternatives
Use a wrapper binary that translates from the Lua CLI to the Neovim CLI.
This option should work fine for luarocks test. But it might not be feasible for the second use case of plugin managers shelling out to luarocks, unless neovim or the plugin managers themselves are distributed with a wrapper.
Thoughts?
The text was updated successfully, but these errors were encountered:
This would also be useful for pandoc which now ships a full on Lua interpreter that can be used as pandoc-lua (and it would make packaging filters for use with Pandoc easier) and in the future it would also be useful for sile which is headed the same direction.
Description
@teto and I are working on promoting LuaRocks for Neovim plugin distribution, using the luarocks-tag-release GitHub action - in the hopes of solving some pain points in the current plugin ecosystem.
Neovim is bundled with LuaJIT, and can act as a Lua interpreter with the
nvim -l
command.It could be useful to be able to configure
luarocks
to use Neovim with the-l
flag as a Lua interpreter.Here are some use cases I have in mind:
busted
.luarocks
after configuring it to use Neovim as an interpreter.A generic API for this could look something like this:
To work with
busted
, some additional configuration options might be necessary. For example,lua -e stat
may need to be translated tonvim -c lua stat
- not sure if this is feasible to do on the LuaRocks side.Alternatives
This option should work fine for
luarocks test
. But it might not be feasible for the second use case of plugin managers shelling out toluarocks
, unless neovim or the plugin managers themselves are distributed with a wrapper.Thoughts?
The text was updated successfully, but these errors were encountered: