mirror of https://github.com/sgoudham/neovide.git
set buffer frames to 1 and add extra buffer startup command. Fix bug where mouse position is improperly scaled
parent
260291e8b6
commit
703087fd88
@ -1,2 +1,3 @@
|
||||
/target
|
||||
**/*.rs.bk
|
||||
*.log
|
||||
|
@ -1,13 +1,23 @@
|
||||
use std::sync::atomic::AtomicBool;
|
||||
use std::sync::atomic::{AtomicBool, AtomicU16};
|
||||
|
||||
use crossbeam::atomic::AtomicCell;
|
||||
|
||||
lazy_static! {
|
||||
pub static ref SETTINGS: Settings = Settings::default();
|
||||
pub static ref SETTINGS: Settings = Settings::new();
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Settings {
|
||||
pub neovim_arguments: AtomicCell<Option<Vec<String>>>,
|
||||
pub no_idle: AtomicBool
|
||||
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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue