diff options
author | Blaž Hrastnik | 2021-05-10 08:57:17 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-05-10 08:57:17 +0000 |
commit | 0190fee1c2fc2aa9558d51e0a608ef9a6b226775 (patch) | |
tree | b6b129c07c82a8aa8c60b801ca7134e4527d26cf /helix-core | |
parent | 41997d136ad05bfd528e637747970175b1a4f1aa (diff) |
Fix indent test, we need to use the in-tree runtime dir.
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/indent.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs index 23b21ed3..ca042172 100644 --- a/helix-core/src/indent.rs +++ b/helix-core/src/indent.rs @@ -289,6 +289,11 @@ where }], }); + // set runtime path so we can find the queries + let mut runtime = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")); + runtime.push("../runtime"); + std::env::set_var("HELIX_RUNTIME", runtime.to_str().unwrap()); + let language_config = loader.language_config_for_scope("source.rust").unwrap(); let highlight_config = language_config.highlight_config(&[]).unwrap(); let syntax = Syntax::new(&doc, highlight_config.clone()); |