-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Dynamic Require Expressions #276
Comments
If you're willing to wait a couple days, I will have a lot of examples of this functioning in a certain form. It is possible today, and I can follow up with some examples in a few minutes
I would like to enable |
some examples would be helpful! The interface I was originally intending to use was to iterate over all files in Also, while I'm asking questions, what do you think the most ergonomic way of taking a function required from somewhere and reproviding it in |
So I've adjusted the interface within helix to alleviate this. I just have some merge conflicts to address and then will have the update pushed - but the new way of doing this will just be to look at the global environment and find doc comments there. So really, all that should be needed is a single |
Alright - apologies for the delay, but all of that is pushed now. You can find some examples here:
|
This refers to require expressions that can be outside of the top-level scope, or can accept arbitrary strings to determine where to require from (i.e. require at runtime). The usecase I have for this is that I'd like to add a system for project-specific plugins to my helix config (i.e. have a bunch of
.scm
files in the.helix
directory in the project, and run all of them if I open helix in that project), and this is as far as I can tell currently not possible. (I have no idea how annoying this would be to add 😅)The text was updated successfully, but these errors were encountered: