mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
410 B
Rust
21 lines
410 B
Rust
use std::path::{Path, PathBuf};
|
|
|
|
pub fn project_root() -> PathBuf {
|
|
Path::new(env!("CARGO_MANIFEST_DIR"))
|
|
.parent()
|
|
.unwrap()
|
|
.to_path_buf()
|
|
}
|
|
|
|
pub fn book_gen() -> PathBuf {
|
|
project_root().join("book/src/generated/")
|
|
}
|
|
|
|
pub fn ts_queries() -> PathBuf {
|
|
project_root().join("runtime/queries")
|
|
}
|
|
|
|
pub fn lang_config() -> PathBuf {
|
|
project_root().join("languages.toml")
|
|
}
|