Remove fix for old nvim
This commit is contained in:
parent
fa31e8b0b0
commit
f2ccb2c6ee
@ -1,4 +1,4 @@
|
|||||||
use neovim_lib::{Neovim, NeovimApi, Session, Value, Integer};
|
use neovim_lib::{Neovim, Session, Value, Integer};
|
||||||
use std::io::{Result, Error, ErrorKind};
|
use std::io::{Result, Error, ErrorKind};
|
||||||
use std::result;
|
use std::result;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
@ -73,8 +73,6 @@ pub fn initialize(ui: &mut Ui) -> Result<()> {
|
|||||||
let mut nvim = ui.nvim();
|
let mut nvim = ui.nvim();
|
||||||
|
|
||||||
nvim.session.start_event_loop_cb(move |m, p| nvim_cb(m, p));
|
nvim.session.start_event_loop_cb(move |m, p| nvim_cb(m, p));
|
||||||
// fix neovim --embed bug to start embed mode
|
|
||||||
nvim.input("i").unwrap();
|
|
||||||
nvim.ui_attach(80, 24, true).map_err(|e| Error::new(ErrorKind::Other, e))?;
|
nvim.ui_attach(80, 24, true).map_err(|e| Error::new(ErrorKind::Other, e))?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -71,7 +71,7 @@ impl Ui {
|
|||||||
line_height: None,
|
line_height: None,
|
||||||
char_width: None,
|
char_width: None,
|
||||||
resize_timer: None,
|
resize_timer: None,
|
||||||
mode: NvimMode::Insert,
|
mode: NvimMode::Normal,
|
||||||
mouse_enabled: false,
|
mouse_enabled: false,
|
||||||
mouse_pressed: false,
|
mouse_pressed: false,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user