Skip to content
Discussion options

You must be logged in to vote

Hey!
I think this may be down to extras/init.lua being a simple table, while ls is not.
The reason behind this is that ls contains a bunch of entries from other modules, and we want to make these accessible lazily to decrease the upfront cost of loading all of them.
As to how luals could be made aware of them, maybe type-hints? But that would be quite a large endeavour 😅

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@michaeldebetaz
Comment options

Answer selected by michaeldebetaz
Comment options

You must be logged in to vote
1 reply
@L3MON4D3
Comment options

Comment options

You must be logged in to vote
3 replies
@L3MON4D3
Comment options

@michaeldebetaz
Comment options

@L3MON4D3
Comment options

Comment options

You must be logged in to vote
2 replies
@L3MON4D3
Comment options

@michaeldebetaz
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants