Commit graph

37 commits

Author SHA1 Message Date
Spencer Gray
17732094c8 fix(health, rockspec): accept Lua 5.1+ for luarocks compatibility
Previously, lazy.nvim health checks required exactly Lua 5.1, causing
warnings on systems with newer Lua versions (5.2, 5.3, 5.4). This was
unnecessarily restrictive since LuaRocks can run on any Lua version 5.1+
to build packages.

Its true that Neovim plugins must be Lua 5.1 compatible (due to LuaJIT),
but the `--lua-version 5.1` flag tells luarocks to build for 5.1.

After some light testing, I verified a system with Lua 5.4 should be
able to build Lua 5.1-compatible packages just fine.

The key point is that this removes false warnings while maintaining the
same safety guarantees - LuaRocks with any modern Lua version can still
build packages targeting Lua 5.1 compatibility for Neovim.

Closes: #2020
2025-07-14 16:29:52 -04:00
Folke Lemaitre
7d29719ade
fix(health): dont use vim.fn.system to get cmd versions 2024-07-22 14:38:00 +02:00
Folke Lemaitre
d0921f5b9b
fix(health): check for errors when executing commands. Closes #1599 2024-07-02 13:43:03 +02:00
Folke Lemaitre
9ab3061690
perf(rocks): vim.fn.executable is slow on WSL2, so only check for luarocks when needed. Closes #1585 2024-06-29 11:44:31 +02:00
Folke Lemaitre
c0fd59b020
feat(health): show steps to get luarocks working. See #1570 2024-06-27 12:31:58 +02:00
Folke Lemaitre
9c8e7a4840
feat(health): show user's lazy.nvim version in checkhealth 2024-06-27 10:44:35 +02:00
Folke Lemaitre
0d9fd636be
fix(health): show what plugins need luarocks and if none, use warnings instead of errors. See #1551 2024-06-25 21:15:51 +02:00
Folke Lemaitre
7d3f69104f
fix(rocks): better errors / warnings when something goes wrong with luarocks 2024-06-25 13:23:25 +02:00
Folke Lemaitre
ae4881d36e
fix(health): only check for luarocks when luarocks is enabled. 2024-06-24 20:03:00 +02:00
Folke Lemaitre
e3ee51b668
fix(health): show missing luarocks as warning 2024-06-24 19:44:22 +02:00
Folke Lemaitre
0f45c0d062
fix(health): added luarocks check to health 2024-06-24 17:50:29 +02:00
Folke Lemaitre
75ffe56f70 feat: rewrite of spec resolving 2024-06-24 17:15:10 +02:00
Folke Lemaitre
481aed70cc
fix(heath): vim.uv. Fixes #1412 2024-04-22 10:33:32 +02:00
Folke Lemaitre
9e157df077
feat: refactor all vim.loop -> vim.uv and add a shim when needed 2024-03-22 08:58:36 +01:00
Folke Lemaitre
1b3df6c007
fix(health): dont warn on submodules. Fixes #1174 2024-01-20 14:49:47 +01:00
Folke Lemaitre
22bf6ae04b
style: sort requires 2023-10-09 11:25:42 +02:00
Kasshi K
2b241f74ed
fix typo in health.lua (#933) 2023-07-16 08:50:53 +02:00
Mayrixon
24803fcbe3
fix(health): false warning when checking plugins configured with 'optional' key (#897) 2023-06-26 07:54:12 +02:00
Ulibos
0c7b41872e
fix(health): show error if setup didn't run
* Fix back bootstrapping and healthcheck for fresh install with no packages to fetch.

* Revert changes to bootstrapping, make checkhealth produce more meaningful message.
2023-04-27 18:21:02 +02:00
dundargoc
c8cad54895
fix(checkhealth): use non-deprecated versions if possible (#729) 2023-04-16 14:07:41 +02:00
Andy Dirnberger
e7622b78f6
fix(health): add main key (#679) 2023-03-20 08:02:24 +01:00
Folke Lemaitre
959f8c36bc
fix(health): allow overriding 1 2023-03-18 08:36:06 +01:00
Folke Lemaitre
9bd1c946d6
feat(health): check for paths on the rtp from plugged or packer 2023-02-27 20:38:05 +01:00
Folke Lemaitre
5694483e87
fix(health): whitelist deactivate prop 2023-02-27 13:42:59 +01:00
Folke Lemaitre
527f83cae5
fix(health): existing packages on windows. Fixes #474 2023-02-01 08:09:02 +01:00
Folke Lemaitre
9b5cc1bf53
feat(health): check for git in health checks 2023-01-24 22:58:40 +01:00
Folke Lemaitre
7260a2b28b
feat(spec)!: setting a table to Plugin.config is now deprecated. Please use Plugin.opts instead. (backward compatible for now) 2023-01-08 15:01:58 +01:00
Folke Lemaitre
bce0c6e327
perf(spec): more efficient merging of specs and added Plugin._.super 2023-01-04 09:35:00 +01:00
Folke Lemaitre
1c854d7a6d
fix(health): check for all packages on the rtp, excluding dist packs 2023-01-03 23:48:00 +01:00
Folke Lemaitre
919b7f5de3
feat(spec): added import to import other plugin modules 2023-01-02 09:44:28 +01:00
Folke Lemaitre
6ff480bdee
fix(health): always use main spec 2023-01-01 21:09:20 +01:00
Folke Lemaitre
32511a1214
feat(health): added spec parsing errors to :checkhealth 2022-12-30 11:52:20 +01:00
max397574
b813fae61c
fix(health): add cond key (#203) 2022-12-28 17:39:51 +01:00
Darkhan
dc03fa1ae5
fix(health): add new key priority to :checkhealth lazy (#196) 2022-12-28 00:03:09 +01:00
Folke Lemaitre
c228908ffc
fix(health): don't show warning on module=false 2022-12-21 16:07:53 +01:00
Folke Lemaitre
4cfe0b5315
refactor: Plugin.uri => Plugin.url 2022-12-13 10:10:17 +01:00
Folke Lemaitre
dc2dcd2d5a
feat: added health checks 2022-12-05 21:31:26 +01:00