add config file

This commit is contained in:
alice pellerin
2026-04-08 16:24:17 -05:00
parent d45e0a5032
commit 61f3dd0c7b
6 changed files with 86 additions and 39 deletions
+1 -14
View File
@@ -1,17 +1,14 @@
#![warn(clippy::pedantic, clippy::nursery)]
#![allow(clippy::cast_possible_truncation)]
#![allow(clippy::enum_glob_use)]
#![feature(get_disjoint_mut_helpers)]
#![feature(exact_bitshifts)]
#![feature(hash_set_entry)]
#![feature(trim_prefix_suffix)]
use std::fs::read_to_string;
use app::App;
use crossterm::{QueueableCommand, event::{DisableMouseCapture, EnableMouseCapture}};
use crate::config::Config;
mod app;
mod buffer;
mod config;
@@ -59,16 +56,6 @@ const BYTES_OF_PADDING: usize = LINES_OF_PADDING * BYTES_PER_LINE;
// - how to fit??! `-128` longer than `80`
fn main() {
// let config = Config::default();
// let toml_string = toml::to_string_pretty(&config);
// println!("{}", toml_string.unwrap());
// let string = read_to_string("/Users/simonomi/Desktop/hexapoda_config.toml").unwrap();
// let config: Config = toml::from_str(&string).unwrap();
// dbg!(config.0);
// return;
let mut app = App::new();
let mut terminal = ratatui::init();
crossterm::terminal::enable_raw_mode().unwrap();