Skip to content

Commit

Permalink
Changed HELIX_RUNTIME build from src instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Scott committed Jan 18, 2023
1 parent c4620ff commit 5a0a1db
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions book/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ cargo install --path helix-term --locked
This will install the `hx` binary to `$HOME/.cargo/bin` and build tree-sitter grammars in `./runtime/grammars`.

Helix also needs its runtime files so make sure to copy/symlink the `runtime/` directory into the
config directory (for example `~/.config/helix/runtime` on Linux/macOS). This location can be overridden
via the `HELIX_RUNTIME` environment variable.
config directory (for example `~/.config/helix/runtime` on Linux/macOS). An alternative runtime directory can
be used by setting the `HELIX_RUNTIME` environment variable. Both runtime directories can be used at the same
time, with the files residing under the config runtime directory given priority.

| OS | Command |
| -------------------- | ------------------------------------------------ |
Expand All @@ -125,11 +126,6 @@ cd %appdata%\helix
mklink /D runtime "<helix-repo>\runtime"
```

The runtime location can be overridden via the `HELIX_RUNTIME` environment variable.

> NOTE: if `HELIX_RUNTIME` is set prior to calling `cargo install --path helix-term --locked`,
> tree-sitter grammars will be built in `$HELIX_RUNTIME/grammars`.
If you plan on keeping the repo locally, an alternative to copying/symlinking
runtime files is to set `HELIX_RUNTIME=/path/to/helix/runtime`
(`HELIX_RUNTIME=$PWD/runtime` if you're in the helix repo directory).
Expand Down

0 comments on commit 5a0a1db

Please sign in to comment.