helix-mirror/helix-term/src/lib.rs

25 lines
434 B
Rust
Raw Normal View History

#[macro_use]
extern crate helix_view;
pub mod application;
pub mod args;
pub mod commands;
pub mod compositor;
pub mod config;
pub mod health;
2021-06-28 16:48:38 +04:00
pub mod job;
pub mod keymap;
pub mod ui;
pub use keymap::macros::*;
2021-12-03 07:41:13 +04:00
#[cfg(not(windows))]
fn true_color() -> bool {
std::env::var("COLORTERM")
.map(|v| matches!(v.as_str(), "truecolor" | "24bit"))
.unwrap_or(false)
}
2021-12-03 07:41:13 +04:00
#[cfg(windows)]
fn true_color() -> bool {
true
}