Skip to content

refactor: move LuaLS meta to a subdirectory - #6530

Merged
Mm2PL merged 2 commits into
Chatterino:masterfrom
Nerixyz:refactor/meta-files
Oct 8, 2025
Merged

Mm2PL merged 2 commits into
Chatterino:masterfrom
Nerixyz:refactor/meta-files

Conversation

@Nerixyz

@Nerixyz Nerixyz commented Oct 8, 2025

Copy link
Copy Markdown
Contributor

In preparation for modules that can be require()'d separately. For these modules, there needs to be at least one file per module. The ---@meta <name> creates a logical module that can be require()'d. The current definitions are global - they can't be imported through require('Chatterino2'), so they're named _.

New modules such as the JSON utilities from #6420 will go in docs/lua-meta.

@Mm2PL

Mm2PL commented Oct 8, 2025

Copy link
Copy Markdown
Collaborator

It'd be kinda cool to auto-generate meta files other than globals

@Mm2PL
Mm2PL enabled auto-merge (squash) October 8, 2025 13:24
@Mm2PL
Mm2PL merged commit 4be0e13 into Chatterino:master Oct 8, 2025
18 checks passed
babicekmarek pushed a commit to babicekmarek/streamally-chatterino that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants