-
-
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
Help with syntax highlighting #1098
Comments
Can you give us some details (you didn't fill out the bug template)? What helix version? What programming language? What file are you trying to load? Are you using a package or installing from source? |
Mostly because it's not a bug, I just need some help
v0.5.0
This confuses me coming from vim where you just enable syntax highlighting and that's it. I am not a programmer, I'm just a hobbyist who likes colorful code. I'm mostly editing dot-files and configs in C, some in rust and and a handful of common lisp. But I just want The Kitchen Sink syntax highlighting package that does it all.
I installed form source as per the installation instructions. Extra info: edit: spelling |
Yeah, Helix highlighting should also work out of the box, as long as you're using a language we support (currently any of the ones listed in https://github.com/helix-editor/helix/blob/master/languages.toml) if you're not getting syntax highlighting for
|
Yeah, I've copied the |
Run Helix via |
I removed Helix and started from the beginning. It seems to have worked this time. Cheers |
While most syntax highlighting is working now (including |
Support for file detection from shebang line landed in master a while ago (#1001), so you'll have to either build from source or wait for v0.6. |
I did build from source, 11 days ago. Looks like those changes landed before I built To be clear, my |
Ah you need at the very least a proper shebang line like |
I've added the shebang and it does work. I'm just a little unsure whether or not it'll have any unwanted consequences. Anyway, Closing again. |
Are you building on latest master? Grammars weren't cross-compiled correctly before this change https://github.com/helix-editor/helix/pull/3137/files#diff-a51c059189ef3148ad3623783b405a650987fba714abf1b6c9343d86862c8dc1R323 |
I wasn't, thanks for the information, I manage to fix it, by compliling on different machine with common architecture. However, Im still not able to display colors properly when using tmux (I already tried everything from google search) |
TOML is in the list of supported of languages. Still I was unable to see any highlighting in my toml files. I installed hx using Cargo and I can't see any app related files in my ~/.config/helix folder. Later I found the helix files are located in ~/tools/helix folder. Then I symlinked the ~/tools/helix folder to ~/.config/helix. Now syntax highlighting works. |
Same problem here. I've installed Helix from source on Arch Linux as the readme file says. I've also executed the command |
Why not use the |
yeah, you're right. It all works now, thanks |
For anyone reading this and having the same problem as @Lyreplus above. For me what worked was to export a variable |
@beeb Thanks!!! done that and just worked like magic! |
Nice! Alternatively I think I later also got it working in the end by making a symlink inside |
I need some help getting syntax highlighting working. I'm not familiar with this
tree-sitter
business and really have no idea what I'm supposed to do. I think I need an idiots guide to setting syntax highlighting in Helix.Thanks!
The text was updated successfully, but these errors were encountered: