2021-06-17 18:09:10 -04:00
|
|
|
#[macro_use]
|
|
|
|
extern crate helix_view;
|
|
|
|
|
2021-06-07 12:40:21 +08:00
|
|
|
pub mod application;
|
|
|
|
pub mod args;
|
|
|
|
pub mod commands;
|
|
|
|
pub mod compositor;
|
2021-06-17 13:08:05 +02:00
|
|
|
pub mod config;
|
2022-03-08 10:55:46 +05:30
|
|
|
pub mod health;
|
2022-02-13 10:42:18 -06:00
|
|
|
pub mod grammars;
|
2021-06-28 07:48:38 -05:00
|
|
|
pub mod job;
|
2021-06-07 12:40:21 +08:00
|
|
|
pub mod keymap;
|
|
|
|
pub mod ui;
|
2021-11-14 07:26:48 -05:00
|
|
|
|
2021-12-02 22:41:13 -05:00
|
|
|
#[cfg(not(windows))]
|
2021-11-14 07:26:48 -05:00
|
|
|
fn true_color() -> bool {
|
|
|
|
std::env::var("COLORTERM")
|
|
|
|
.map(|v| matches!(v.as_str(), "truecolor" | "24bit"))
|
|
|
|
.unwrap_or(false)
|
|
|
|
}
|
2021-12-02 22:41:13 -05:00
|
|
|
#[cfg(windows)]
|
|
|
|
fn true_color() -> bool {
|
|
|
|
true
|
|
|
|
}
|