Skip to content

Commit eff6f1b

Browse files
committed
fix(health): include luarocks.nvim plugin in the luarocks installation section
1 parent abfc4b2 commit eff6f1b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lua/rest-nvim/health.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ local function install_health()
1313

1414
-- Luarocks installed
1515
-- 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
16+
-- 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
1720
vim.health.error("`Luarocks` is not installed in your system")
1821
else
1922
vim.health.ok("Found `luarocks` installed in your system")

0 commit comments

Comments
 (0)