diff options
| author | Volodymyr Chernetskyi <volodymyr_chernetskyi@goodyear.com> | 2026-09-02 14:12:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-02 08:12:07 -0400 |
| commit | 3ea7bc3f607bdc08940698e7d049036e1f788c66 (patch) | |
| tree | fb362fce7a491ce50c14fdd3ee1d4105aab3e018 /runtime/lua/vim/loader.lua | |
| parent | d290ef58b2a76f14ff169d21abc43181b2ad18d8 (diff) | |
| download | rneovim-3ea7bc3f607bdc08940698e7d049036e1f788c66.tar.gz rneovim-3ea7bc3f607bdc08940698e7d049036e1f788c66.tar.bz2 rneovim-3ea7bc3f607bdc08940698e7d049036e1f788c66.zip | |
fix(health): restore pynvim version lookup #41619
Problem:
Fallback pynvim version lookup is broken since Vimscript-to-Lua rewrite.
- `vim.fs.basename()` returns the module filename instead of the
directory needed to discover adjacent metadata. This produces an
empty metadata list, hiding the remaining issues.
- `table.sort()` requires a Boolean comparator, while
`vim.version.cmp()` returns a number.
- `table.sort()` sorts in place and returns no value, so assigning its
result discards the metadata list.
Solution:
- Use `vim.fs.dirname()` to discover adjacent package metadata.
- Use `vim.version.gt()` as the descending Boolean comparator.
- Sort the metadata list in place.
This restores fallback version detection when `neovim.VERSION` is
unavailable.
Diffstat (limited to 'runtime/lua/vim/loader.lua')
0 files changed, 0 insertions, 0 deletions