@@ -41,7 +41,7 @@ cd helix
41cargo install --path helix-term
41cargo install --path helix-term
44−This will install the `hx` binary to `$HOME/.cargo/bin` and build tree-sitter grammars.
44+This will install the `hx` binary to `$HOME/.cargo/bin` and build tree-sitter grammars in `./runtime/grammars`.
46Helix needs its runtime files so make sure to copy/symlink the `runtime/` directory into the
46Helix needs its runtime files so make sure to copy/symlink the `runtime/` directory into the
47config directory (for example `~/.config/helix/runtime` on Linux/macOS, or `%AppData%/helix/runtime` on Windows).
47config directory (for example `~/.config/helix/runtime` on Linux/macOS, or `%AppData%/helix/runtime` on Windows).
@@ -68,7 +68,14 @@ cd %appdata%\helix
68mklink /D runtime "<helix-repo>\runtime"
68mklink /D runtime "<helix-repo>\runtime"
71−This location can be overridden via the `HELIX_RUNTIME` environment variable.
71+The runtime location can be overridden via the `HELIX_RUNTIME` environment variable.
73+> NOTE: if `HELIX_RUNTIME` is set prior to calling `cargo install --path helix-term`,
74+> tree-sitter grammars will be built in `$HELIX_RUNTIME/grammars`.
76+If you plan on keeping the repo locally, an alternative to copying/symlinking
77+runtime files is to set `HELIX_RUNTIME=/path/to/helix/runtime`
78+(`HELIX_RUNTIME=$PWD/runtime` if you're in the helix repo directory).
73Packages already solve this for you by wrapping the `hx` binary with a wrapper
80Packages already solve this for you by wrapping the `hx` binary with a wrapper
74that sets the variable to the install dir.
81that sets the variable to the install dir.