use std::sync::Mutex;
use crate::ui::RenderConfig;
use std::sync::LazyLock;
static GLOBAL_RENDER_CONFIGURATION: LazyLock<Mutex<RenderConfig<'static>>> =
LazyLock::new(|| Mutex::new(RenderConfig::default()));
pub fn get_configuration() -> RenderConfig<'static> {
*GLOBAL_RENDER_CONFIGURATION.lock().unwrap()
}
pub fn set_global_render_config(config: RenderConfig<'static>) {
let mut guard = GLOBAL_RENDER_CONFIGURATION.lock().unwrap();
*guard = config;
}
pub const DEFAULT_PAGE_SIZE: usize = 7;
pub const DEFAULT_VIM_MODE: bool = false;