rocks.nvim
rocks.nvim copied to clipboard
[Feature/installer] detect correctly configured luarocks installation?
I think it might be useful to deselect the "Set up luarocks" option (and remove the "recommended" hint) in the installer if we can detect a properly configured luarocks installation.
We could do this with the following queries:
-
luarocks --version
(we should set min/max version bounds) -
luarocks config lua_version
-> This should output "5.1".
Anything else?
CC @vhyrro
That should be enough for the most part. It would be wise to perform this check for sure :)
This is sorely missing. I was tinkering around and looking for what path forward to take for my plugin management (I have been on hybrid of vim-plug and packer for several years, but the latter is now deprecated). I was attracted to this over lazy.nvim but after getting the bootstrap going and testing a couple plugins this cropped up. I would really like to not duplicate things I manage very closely anyway and having a bunch of vendored versions of LuaRocks around is not attractive to me.
The first thing I tried was vim.g.luarocks_binary = "/usr/bin/luarocks"
. The help docs for that setting are very unclear and it seemed to me it was just poorly written copy and was probably used to specify a path to a Luarocks binary to use. Apparently that is not the case because it still vendored it.
Is there any hope of this getting addressed?