Choose how to parse a file manually #3261
-
Normally helix parse a file based on the file extensions, like .cpp. Can we specify the way helix treat a file on our own? When I am viewing the source code of STL in C++, the file has no extension thus making the syntax highlight fail. Can I make helix treat it as a cpp file? |
Beta Was this translation helpful? Give feedback.
Answered by
the-mikedavis
Jul 30, 2022
Replies: 1 comment
-
You can use the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xcpky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
:set-language
(:lang
for short) command to tell helix which language you'd like to use for syntax highlight and LSP on a buffer.