Skip to content

Commit

Permalink
fix(health): include luarocks.nvim plugin in the luarocks installat…
Browse files Browse the repository at this point in the history
…ion section
  • Loading branch information
NTBBloodbath committed Mar 18, 2024
1 parent abfc4b2 commit eff6f1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/rest-nvim/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ local function install_health()

-- Luarocks installed
-- we check for either luarocks system-wide or rocks.nvim as rocks.nvim can manage Luarocks installation
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
local found_luarocks_nvim = package.searchpath("luarocks", package.path)

if vim.fn.executable("luarocks") ~= 1 and not vim.g.rocks_nvim_loaded and not found_luarocks_nvim then
vim.health.error("`Luarocks` is not installed in your system")
else
vim.health.ok("Found `luarocks` installed in your system")
Expand Down

0 comments on commit eff6f1b

Please sign in to comment.