Closed boltlessengineer closed 2 weeks ago
Just make sure you have a properly working configured lazy/luarocks/hererocks. I can't possibly account for all user issues.
@folke I understand your point, What is the least compatible version of luarocks then? It isn’t documented right now.
That totally depends on the plugins you want to install, so no idea...
In the issue I mentioned, lazy.nvim
tried to run luarocks install --dev …
but failed because installed luarocks version was 2.4.2 which doesn’t support --dev
flag so clearly lazy.nvim
requires luarocks
version higher than 2.5
(I don’t know exactly what version first included --dev
flag) and I’m saying this should be documented.
Did you check the docs?
Is your feature request related to a problem? Please describe.
Continuing from https://github.com/rest-nvim/rest.nvim/issues/450
lazy.nvim
seems to only usehererocks
when it can’t findluarocks
from PATH. But it doesn’t check if installedluarocks
is compatible version.So for example, as what happens from the issue above,
lazy.nvim
tries to useluarocks
even the version is way too old (2.4.2 from that issue)Describe the solution you'd like
Check installed
luarocks
version and usehererocks
if the installedluarocks
is incompatible version.Describe alternatives you've considered
luarocks
version from docs, checkhealth and:Lazy
UIlazy.nvim
to usehererocks
(I think I’ve seen this somewhere before but can’t find it. Sorry if it already exists)Additional context
No response