-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Highlight .env
/ .envrc
files
#8092
Comments
(I think |
I did some searching around and it seems vim, amongst other editors, treat I've been looking for an issue to get me started contributing to helix and will happily pick it up later today if it hasn't been done |
Hmm, env highlighting already seems to exist for .env and .envrc via the bash grammar: Lines 2262 to 2270 in 13d4463
I've opened up an editor and can also confirm that the highlighting is being applied. @yoav-lavi is there any chance your local Might be that the file-types to be relaxed a bit if your env file has a .local extension or similar |
You're likely right, I must have looked at a |
I could see wildcard filename support being useful anytime you've got a file with a local override. It might be better to do the extra work to add wildcard support but open to opinions on that one |
closed by #4536 |
Both are currently treated as plain text.
For
.env
it would probably be best to include\.env(\.(\w)+)?
,.envrc
could do the same or just.envrc.example
as a single addition to.envrc
The text was updated successfully, but these errors were encountered: