Is there a way to have Helix "remember" when I use :set-language
on a particular file?
#13398
Answered
by
ChrisRenfrow
ChrisRenfrow
asked this question in
Q&A
-
Sorry if this is documented someplace already, I wasn't able to find it if it is. Sometimes a file doesn't have an extension but I want to edit it with syntax highlighting and/or formatting enabled. While I'm glad |
Beta Was this translation helpful? Give feedback.
Answered by
ChrisRenfrow
Apr 29, 2025
Replies: 1 comment 2 replies
-
Take a look here and the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had no idea
file-types
was so flexible. Thanks for the pointer!For anyone else encountering this thread in the future, you can pass a list of tables to
file-types
with the key/columnglob
. Example from the docs (25.01.1):In my case, I'm trying to get JSON highlighting enabled for a particular config file that lacks the extension, so I'd add something like:
Thanks again @bojohnson5!