Skip to content
Discussion options

You must be logged in to vote

Ah! Thanks for the clue! While it's not the same mechanism and I was thinking about, at least for Haskell I can just add a ~/.config/helix/languages.toml with:

[[language]]
name = "haskell"
shebangs = ["cabal", "stack", "runghc", "runhaskell"]

And my scripts now load into helix with the correct 'haskell' filetype. The default languages.toml does not have a shebang line for Haskell, so it doesn't work by default, like you said.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bonds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants