helix should use own provided runtime and not system one
Package Information
- Package name: helix
- Package version: 24.03-r0
- Alpine version: 3.20.2
- Alpine architecture: x86_64 and aarch64
Summary
According to: https://docs.helix-editor.com/master/building-from-source.html#configuring-helixs-runtime-files Helix should use the runtime provided in the source repository. The Alpine package replaces this with system defaults:
# Remove helix grammars and queries, use system ones instead.
rm -rf runtime/queries
rm -rf runtime/grammars
According to the detailed explanation in: https://github.com/helix-editor/helix/discussions/9683 the queries provided with Helix are fine-tuned for this editor and perform better than the examples provided with tree-sitter.
Apparently, only the "queries" are the problem. The "grammars" are fetched and built in the user's local .configuration by "hx -g fetch; hx -g build".
Steps to reproduce
"helix -g fetch; helix -g build"; syntax highlighting does not work.
Woraround
cd
git clone https://github.com/helix-editor/helix
cd .config/helix/runtime/
ln -s ~/helix/runtime/queries .