Fix lua 5.1 detection on FreeBSD

FreeBSD installs lua 5.1 binary as `lua51`. Add this to the list of possible binary names.
This commit is contained in:
Lars E 2025-09-12 16:35:57 +02:00 committed by GitHub
commit c006b3b869
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",