mirror of https://github.com/sgoudham/neovide.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
817 B
Rust
42 lines
817 B
Rust
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
#[macro_use]
|
|
mod settings;
|
|
|
|
mod bridge;
|
|
mod editor;
|
|
mod error_handling;
|
|
mod redraw_scheduler;
|
|
mod renderer;
|
|
mod window;
|
|
|
|
#[macro_use]
|
|
extern crate derive_new;
|
|
#[macro_use]
|
|
extern crate rust_embed;
|
|
#[macro_use]
|
|
extern crate lazy_static;
|
|
|
|
use lazy_static::initialize;
|
|
|
|
use bridge::BRIDGE;
|
|
use std::process;
|
|
use window::ui_loop;
|
|
use window::window_geometry;
|
|
|
|
pub const INITIAL_DIMENSIONS: (u64, u64) = (100, 50);
|
|
|
|
fn main() {
|
|
if let Err(err) = window_geometry() {
|
|
eprintln!("{}", err);
|
|
process::exit(1);
|
|
};
|
|
window::initialize_settings();
|
|
redraw_scheduler::initialize_settings();
|
|
renderer::cursor_renderer::initialize_settings();
|
|
bridge::layouts::initialize_settings();
|
|
|
|
initialize(&BRIDGE);
|
|
ui_loop();
|
|
}
|