mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-09-11 16:07:00 +03:00
Fix indent test, we need to use the in-tree runtime dir.
This commit is contained in:
parent
41997d136a
commit
0190fee1c2
@ -289,6 +289,11 @@ pub fn change<I>(document: &Document, changes: I) -> Self
|
||||
}],
|
||||
});
|
||||
|
||||
// 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());
|
||||
|
Loading…
Reference in New Issue
Block a user