-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add support for a workspace runtime directory #12823
Conversation
d11bc16
to
fbe9f9a
Compare
I actually ran into a problem by not having this, it's not just an aesthetic thing anymore. The building from source instructions for helix recommend symlinking Would be great if someone could take a look at it, it doesn't seem like an invasive change. |
This is a REALLY powerful feature and I will show you why with a personal usecase. I use a python project which has a rust("""macro_rules! my_macro {
($wow : tt) => {
dbg!($wow);
};
}""") I use this function quite a lot. I would really like to have syntax highlighting for it. To do this, I made the following file:
The above code will inject the Now, I actually have Rust syntax highlighting for that What's problematic, is that I must add this to my global configuration. I want my project-related stuff in the actual project. I want other Helix users to be able to use this feature as well. So that's why I think this feature is actually extremely powerful because you can do arbitrary injections with it per-project and improve the experience. Would love to get this merged! |
Interestesting! I can think of more use cases in that direction too. I sometimes work on frontend apps with leptos, which has an html-like macro. It could be cool to inject html syntax highlighting into Rust on those projects. |
This won't work in the long run for queries as we will eventually move them out of the runtime directory and into For query files that are just |
Thanks for the great explanation, that all makes sense. |
closes #12821
In the documentation, there isn't much reference to these directories, other than that
hx --health
displays them. The new workspace directory is correctly included there.