packageDefinitions.packagename = {}:{ extra } and toLua implementation improvements #63
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
having everyone put all the values in categories and use the category fetcher for values is probably confusing.
It still works the same way, I just added an optional extra set to packageDefinitions named extra.
Like the other tables, you can use
nixCats.extra("path.to.val")
as an alias for fetching withvim.tbl_get
to protect against nil table access errors, which is different from how the mainnixCats('path.to.cat')
works in that, if it does not find the value, it will always return nil, rather than returning an indicator of whether it was enabled or not. You can also use:NixCats extra
to view the tableutils.mkLuaInline has been renamed to utils.n2l.types.inline-safe.mk
Extra utils.n2l functions added documented at :help nixCats.flake.outputs.utils.n2l