From 50f7f3bbf228bd053ca92ee80c07cc9460e71816 Mon Sep 17 00:00:00 2001 From: KillTheMule Date: Thu, 16 Jan 2020 16:02:59 +0100 Subject: [PATCH] UI Events are notifications --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index d18afa4..e1c3d67 100644 --- a/src/main.rs +++ b/src/main.rs @@ -58,7 +58,7 @@ struct NeovimHandler(Arc>); impl Handler for NeovimHandler { type Writer = ChildStdin; - async fn handle_request(&self, event_name: String, arguments: Vec, neovim: Neovim) -> Result { + async fn handle_notify(&self, event_name: String, arguments: Vec, neovim: Neovim) { dbg!(&event_name); let parsed_events = parse_neovim_event(event_name, arguments) .unwrap_or_explained_panic("Could not parse event", "Could not parse event from neovim"); @@ -66,7 +66,6 @@ impl Handler for NeovimHandler { let mut editor = self.0.lock().unwrap(); editor.handle_redraw_event(event); } - Ok(Value::Nil) } }