From c006b3b86978097ccdf6ee2cb5113ac035e14ec5 Mon Sep 17 00:00:00 2001 From: Lars E <1733402+bsdlme@users.noreply.github.com> Date: Fri, 12 Sep 2025 16:35:57 +0200 Subject: [PATCH] Fix lua 5.1 detection on FreeBSD FreeBSD installs lua 5.1 binary as `lua51`. Add this to the list of possible binary names. --- lua/lazy/pkg/rockspec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/pkg/rockspec.lua b/lua/lazy/pkg/rockspec.lua index e8ece1b..d3148a7 100644 --- a/lua/lazy/pkg/rockspec.lua +++ b/lua/lazy/pkg/rockspec.lua @@ -89,7 +89,7 @@ function M.check(opts) else ok = Health.have("luarocks", opts) Health.have( - { "lua5.1", "lua", "lua-5.1" }, + { "lua5.1", "lua", "lua-5.1", "lua51" }, vim.tbl_extend("force", opts, { version = "-v", version_pattern = "5.1",