Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(nix): add a way to override what grammars get built #3141

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

yusdacra
Copy link
Contributor

Adds a way change which grammars get built and included by adding an override function to the helix package that takes an includeGrammarIf attribute which is a function that decided whether the grammar should be included (true) or not (false). This also avoid fetching all of the grammars if you don't need them (like me) which speeds up fetching stuff when you are fetching when the sources aren't cached already. I also added makeWrapperArgs to the override function so it can be set there, I think @nrdxp asked about this.

@the-mikedavis the-mikedavis self-requested a review July 26, 2022 05:17
Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

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

This is great, thanks!

@the-mikedavis the-mikedavis merged commit 85a5df0 into helix-editor:master Jul 27, 2022
GreasySlug pushed a commit to GreasySlug/helix that referenced this pull request Aug 2, 2022
thomasskk pushed a commit to thomasskk/helix that referenced this pull request Sep 9, 2022
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