mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-11-28 21:20:23 +03:00
8abed3bd78
Pass client name ('helix') and client version (version / git hash) to LSP server on initialization.
10 lines
349 B
Rust
10 lines
349 B
Rust
use helix_loader::grammar::{build_grammars, fetch_grammars};
|
|
|
|
fn main() {
|
|
if std::env::var("HELIX_DISABLE_AUTO_GRAMMAR_BUILD").is_err() {
|
|
fetch_grammars().expect("Failed to fetch tree-sitter grammars");
|
|
build_grammars(Some(std::env::var("TARGET").unwrap()))
|
|
.expect("Failed to compile tree-sitter grammars");
|
|
}
|
|
}
|