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

Add support for a workspace runtime directory #12821

Open
senekor opened this issue Feb 9, 2025 · 0 comments · May be fixed by #12823
Open

Add support for a workspace runtime directory #12821

senekor opened this issue Feb 9, 2025 · 0 comments · May be fixed by #12823
Labels
C-enhancement Category: Improvements

Comments

@senekor
Copy link
Contributor

senekor commented Feb 9, 2025

I'm working to simulate EditorConfig support with ec2hx. It works by generating a workspace helix configuration that matches the editorconfig.

The hard part is arbitrary glob sections in editorconfig, because Helix only supports configuration based on languages, not globs. For example, the linux editorconfig has two different indentation styles for python based on which subdirectory the python files are located in...

My solution is to generate synthetic language definitions with the glob as its file-types. The rest of the configuration is copied from the actual language.

In order for syntax highlighting to work, I need to generate textobject queries for the synthetic language. The content is simply ; inherits: <language>, no issues there. But helix doesn't read from a workspace runtime directory, i.e. proj-dir/.helix/runtime. That means I have to generate the textobject queries into the user configuration runtime directory, e.g. ~/.config/helix/runtime. I would like to avoid that, I myself hate tools that vomit autogenerated garbage into my config directory.

Unless there are objections, I will try to implement reading from a workspace runtime directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant