aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/main.rs')
-rw-r--r--helix-term/src/main.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs
index 4f73c9b4..67f88b4e 100644
--- a/helix-term/src/main.rs
+++ b/helix-term/src/main.rs
@@ -104,6 +104,16 @@ FLAGS:
std::process::exit(0);
}
+ if args.fetch_grammars {
+ helix_term::grammars::fetch_grammars()?;
+ return Ok(0);
+ }
+
+ if args.build_grammars {
+ helix_term::grammars::build_grammars()?;
+ return Ok(0);
+ }
+
let conf_dir = helix_core::config_dir();
if !conf_dir.exists() {
std::fs::create_dir_all(&conf_dir).ok();