Skip to content

Add custom overrides for FindMetaTable - #91

Merged
luttje merged 1 commit into
luttje:mainfrom
CFC-Servers:feature/FindMetaTable-overloads
Nov 17, 2026
Merged

luttje merged 1 commit into
luttje:mainfrom
CFC-Servers:feature/FindMetaTable-overloads

Conversation

@sarahsturgeon

Copy link
Copy Markdown
Contributor

Hi! Really love & appreciate the project ♥️

I've been a little annoyed, though, that FindMetaTable complains to me about maybe being nil, and I don't love having to add ignores or explicit typing.

I feel like this is the best solution with the fewest drawbacks ✨

Basically we just add overrides for all of the known Gmod metatables, so if you use one of those, LuaLS won't complain at you.
If you're using it for anything custom, you'll have the exact same nil|table warning, so no changes. there.

One downside is if you look up the FindMetaTable definition it could show you like 40 overrides in the popup. I don't think there's any way around that and I feel like it's way less annoying than the current problem.

Wanted to pitch it as a solution! Happy to discuss

@luttje luttje left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your kind words, support and contribution!

Very easy to read through your PR and see the benefits. This way forward (using the plugin to add overloads) seems like a good approach.

Merging this right away

@luttje
luttje merged commit 42d652e into luttje:main Nov 17, 2026
2 checks passed
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