bee05dd32a
* Add refresh-config and open-config command * clippy * Use dynamic dispatch for editor config * Refactor Result::Ok to Ok * Remove unused import * cargo fmt * Modify config error handling * cargo xtask docgen * impl display for ConfigLoadError * cargo fmt * Put keymaps behind dyn access, refactor config.load() * Update command names * Update helix-term/src/application.rs Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> * Switch to unbounded_channel * Remove --edit-config command * Update configuration docs * Revert "Put keymaps behind dyn access", too hard This reverts commit 06bad8cf492b9331d0a2d1e9242f3ad4e2c1cf79. * Add refresh for keys * Refactor default_keymaps, fix config default, add test * swap -> store, remove unneeded clone * cargo fmt * Rename default_keymaps to default Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
24 lines
434 B
Rust
24 lines
434 B
Rust
#[macro_use]
|
|
extern crate helix_view;
|
|
|
|
pub mod application;
|
|
pub mod args;
|
|
pub mod commands;
|
|
pub mod compositor;
|
|
pub mod config;
|
|
pub mod health;
|
|
pub mod job;
|
|
pub mod keymap;
|
|
pub mod ui;
|
|
pub use keymap::macros::*;
|
|
|
|
#[cfg(not(windows))]
|
|
fn true_color() -> bool {
|
|
std::env::var("COLORTERM")
|
|
.map(|v| matches!(v.as_str(), "truecolor" | "24bit"))
|
|
.unwrap_or(false)
|
|
}
|
|
#[cfg(windows)]
|
|
fn true_color() -> bool {
|
|
true
|
|
}
|