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

Specify custom injections in .config/helix #3732

Closed
414owen opened this issue Sep 7, 2022 · 2 comments
Closed

Specify custom injections in .config/helix #3732

414owen opened this issue Sep 7, 2022 · 2 comments
Labels
C-enhancement Category: Improvements

Comments

@414owen
Copy link
Contributor

414owen commented Sep 7, 2022

I have helix 22.08 (ee94031f) installed from nixpkgs.

Helix doesn't seem to load injections.scm from ~/.config/helix/runtime/queries/haskell, or anywhere similar (I ran strace to see where it looks).

It would be great to be able to specify custom injections, for example, I'd like to be able to highlight the sql in my haskell, and the bash in my nix.

I guess the more general enhancement would be load locally specified runtime files, and merge them with the global versions?

@414owen 414owen added the C-enhancement Category: Improvements label Sep 7, 2022
@archseer
Copy link
Member

archseer commented Sep 7, 2022

It currently reads queries from a single runtime path, but I think we should support multiple: it should look into HELIX_RUNTIME, as well as ~/.config/helix/runtime for files.

@the-mikedavis
Copy link
Member

Yeah this would be more sane behavior. I think this falls under #3346 so I'll close in favor of that one

@the-mikedavis the-mikedavis closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2022
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

No branches or pull requests

3 participants