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
The fzf plugin for vim has a handy feature: it can automatically install a version of the fzf binary on the user's machine, freeing the user of the burden of dealing with the plugin dependency and making it works out of the box.
The lua interpreter is very tiny (around 300 Kb in a 64 bits Linux machine) and can be downloaded much faster than fzf, almost unnoticeably. So, it would be nice if Luar could detect that a lua interpreter is missing and automatically installs one. This has the potential to make people less worried about publishing Kakoune plugins written using Luar.
It could be something in the following lines:
on ModuleLoaded, a script would check if a lua executable is available. If so, nothing happens;
if, on the other hand, a lua executable could not be found, download a tar file from here, unpack it in a predetermined location and set a hidden option to inform the lua command to use the custom binary instead of relying on a system installation.
optionally, allow the user to set an option informing Luar to not download the interpreter automatically.
The text was updated successfully, but these errors were encountered:
I think it would be nicer if auto-downloading would be opt-in as some people may not like downloading binaries to their devices without their interaction.
Also, they may want to install it from a package manager instead.
The
fzf
plugin for vim has a handy feature: it can automatically install a version of thefzf
binary on the user's machine, freeing the user of the burden of dealing with the plugin dependency and making it works out of the box.The
lua
interpreter is very tiny (around 300 Kb in a 64 bits Linux machine) and can be downloaded much faster thanfzf
, almost unnoticeably. So, it would be nice ifLuar
could detect that alua
interpreter is missing and automatically installs one. This has the potential to make people less worried about publishing Kakoune plugins written usingLuar
.It could be something in the following lines:
ModuleLoaded
, a script would check if alua
executable is available. If so, nothing happens;lua
executable could not be found, download atar
file from here, unpack it in a predetermined location and set a hidden option to inform thelua
command to use the custom binary instead of relying on a system installation.Luar
to not download the interpreter automatically.The text was updated successfully, but these errors were encountered: