Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

plenary.enum uses nonexistent metamethod __gt

Open
#632 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
lua
Domain
tooling

Research direction

Start at lua/plenary/enum.lua line 67 and compare the implementation with Lua's documented relational metamethods. Verify the enum comparison behavior using the repository's existing enum entry points or checks; done means the comparison no longer depends on an unsupported metamethod.

Written by the indexing model from the issue text.

Description

Please pardon my bluntness. My lua foo isn't that strong and what I have is fairly rusty. I had to look in my pil books and the reference manuals to refresh my memory about metamethods.

lua/plenary/enum.lua, line 67: lua supports three relational metamethods, __eq, __lt, and __le. As I understand it, the Variant:__gt function will not be recognized by lua.

Dominant language
Lua
Stars
3.5k
Forks
340
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nvim-lua/plenary.nvim

All issues in nvim-lua/plenary.nvim

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.