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.
neovide/src/settings.rs

24 lines
534 B
Rust

use std::sync::atomic::{AtomicBool, AtomicU16};
use crossbeam::atomic::AtomicCell;
lazy_static! {
pub static ref SETTINGS: Settings = Settings::new();
}
pub struct Settings {
pub neovim_arguments: AtomicCell<Option<Vec<String>>>,
pub no_idle: AtomicBool,
pub buffer_frames: AtomicU16
}
impl Settings {
pub fn new() -> Settings {
Settings {
neovim_arguments: AtomicCell::new(None),
no_idle: AtomicBool::new(false),
buffer_frames: AtomicU16::new(1),
}
}
}