From 21c69bb75c98f8e8e627de08c50e787320bdee96 Mon Sep 17 00:00:00 2001 From: NitinKM <70827815+NewtonChutney@users.noreply.github.com> Date: Mon, 8 Jan 2024 08:16:53 +0530 Subject: [PATCH] Info on how to skip grammar build when building from source (#8698) * info: no grammar compile Added instructions on how to compile without compiling grammars * Update book/src/install.md Co-authored-by: Michael Davis --------- Co-authored-by: Michael Davis --- book/src/install.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/book/src/install.md b/book/src/install.md index 8979850132a2..2a4273b867aa 100644 --- a/book/src/install.md +++ b/book/src/install.md @@ -204,6 +204,8 @@ RUSTFLAGS="-C target-feature=-crt-static" This command will create the `hx` executable and construct the tree-sitter grammars in the local `runtime` folder. +> 💡 If you do not want to fetch or build grammars, set an environment variable `HELIX_DISABLE_AUTO_GRAMMAR_BUILD` + > 💡 Tree-sitter grammars can be fetched and compiled if not pre-packaged. Fetch > grammars with `hx --grammar fetch` and compile them with > `hx --grammar build`. This will install them in