We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
luarocks.nvim
1 parent abfc4b2 commit eff6f1bCopy full SHA for eff6f1b
lua/rest-nvim/health.lua
@@ -13,7 +13,10 @@ local function install_health()
13
14
-- Luarocks installed
15
-- we check for either luarocks system-wide or rocks.nvim as rocks.nvim can manage Luarocks installation
16
- if vim.fn.executable("luarocks") ~= 1 and not vim.g.rocks_nvim_loaded then
+ -- and also luarocks.nvim in case the end-user is using lazy.nvim
17
+ local found_luarocks_nvim = package.searchpath("luarocks", package.path)
18
+
19
+ if vim.fn.executable("luarocks") ~= 1 and not vim.g.rocks_nvim_loaded and not found_luarocks_nvim then
20
vim.health.error("`Luarocks` is not installed in your system")
21
else
22
vim.health.ok("Found `luarocks` installed in your system")
0 commit comments