Summary: | app-editors/helix No more syntax highlighting with helix editor for rust source code | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stefan Salewski <mail> |
Component: | Current packages | Assignee: | Patrick McLean <chutzpah> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | blue.cube, freijon, mail, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=934041 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Stefan Salewski
2024-06-07 13:26:10 UTC
Did you see https://gitweb.gentoo.org/repo/gentoo.git/tree/app-editors/helix/helix-24.03.ebuild#n335? Maybe we should add that to the wiki... Oh sorry, I missed that message. It is printed in ordinary text color only. I guess for first install I saw that message and followed the instructions. Then a reinstall must have removed the grammar folder. It would be really nice if someone could copy these instructions to the wiki. Thank you very much for the fast response -- I think we can close this issue. It's me agian :-) The instructions ``` einfo "Grammars are not installed yet. To fetch and install them, run:" einfo "" einfo " hx --grammar fetch" einfo " hx --grammar build" ``` are actually not that clear. At least I was not sure if we should run them directly after "emerge helix" as root. When we do so, grammar folder is created in /root/.config/helix/runtime/ which should not be intended. But running as user after creating the symlink ln -s /usr/share/helix/runtime ~/.config/helix/runtime as told in the wiki should not work. So I guess the solution might be, as user ``` cp /usr/share/helix/runtime ~/.config/helix/runtime hx --grammar fetch hx --grammar build ``` Well, setting the environment variable export HELIX_RUNTIME=/usr/share/helix/runtime (in .bashrc) after hx --grammar fetch hx --grammar build as user seems to be enough, no need to symlink or copy /usr/share/helix/runtime. |