Trait neovim_lib::neovim_api::NeovimApi
[−]
[src]
pub trait NeovimApi { fn command(&mut self, str: &str) -> Result<(), String>; fn feedkeys(&mut self, keys: &str, mode: &str, escape_csi: bool) -> Result<(), String>; fn input(&mut self, keys: &str) -> Result<u64, String>; fn replace_termcodes(&mut self, str: &str, from_part: bool, do_lt: bool, special: bool) -> Result<String, String>; fn command_output(&mut self, str: &str) -> Result<String, String>; fn eval(&mut self, str: &str) -> Result<Value, String>; fn call_function(&mut self, fname: &str, args: Vec<Value>) -> Result<Value, String>; fn strwidth(&mut self, str: &str) -> Result<u64, String>; fn list_runtime_paths(&mut self) -> Result<Vec<String>, String>; fn change_directory(&mut self, dir: &str) -> Result<(), String>; fn get_current_line(&mut self) -> Result<String, String>; fn set_current_line(&mut self, line: &str) -> Result<(), String>; fn del_current_line(&mut self) -> Result<(), String>; fn get_var(&mut self, name: &str) -> Result<Value, String>; fn set_var(&mut self, name: &str, value: Value) -> Result<Value, String>; fn get_vvar(&mut self, name: &str) -> Result<Value, String>; fn get_option(&mut self, name: &str) -> Result<Value, String>; fn set_option(&mut self, name: &str, value: Value) -> Result<(), String>; fn out_write(&mut self, str: &str) -> Result<(), String>; fn err_write(&mut self, str: &str) -> Result<(), String>; fn report_error(&mut self, str: &str) -> Result<(), String>; fn get_buffers(&mut self) -> Result<Vec<Buffer>, String>; fn get_current_buffer(&mut self) -> Result<Buffer, String>; fn set_current_buffer(&mut self, buffer: &Buffer) -> Result<(), String>; fn get_windows(&mut self) -> Result<Vec<Window>, String>; fn get_current_window(&mut self) -> Result<Window, String>; fn set_current_window(&mut self, window: &Window) -> Result<(), String>; fn get_tabpages(&mut self) -> Result<Vec<Tabpage>, String>; fn get_current_tabpage(&mut self) -> Result<Tabpage, String>; fn set_current_tabpage(&mut self, tabpage: &Tabpage) -> Result<(), String>; fn subscribe(&mut self, event: &str) -> Result<(), String>; fn unsubscribe(&mut self, event: &str) -> Result<(), String>; fn name_to_color(&mut self, name: &str) -> Result<u64, String>; fn get_api_info(&mut self) -> Result<Vec<Value>, String>; }
Required Methods
fn command(&mut self, str: &str) -> Result<(), String>
fn feedkeys(&mut self, keys: &str, mode: &str, escape_csi: bool) -> Result<(), String>
fn input(&mut self, keys: &str) -> Result<u64, String>
fn replace_termcodes(&mut self, str: &str, from_part: bool, do_lt: bool, special: bool) -> Result<String, String>
fn command_output(&mut self, str: &str) -> Result<String, String>
fn eval(&mut self, str: &str) -> Result<Value, String>
fn call_function(&mut self, fname: &str, args: Vec<Value>) -> Result<Value, String>
fn strwidth(&mut self, str: &str) -> Result<u64, String>
fn list_runtime_paths(&mut self) -> Result<Vec<String>, String>
fn change_directory(&mut self, dir: &str) -> Result<(), String>
fn get_current_line(&mut self) -> Result<String, String>
fn set_current_line(&mut self, line: &str) -> Result<(), String>
fn del_current_line(&mut self) -> Result<(), String>
fn get_var(&mut self, name: &str) -> Result<Value, String>
fn set_var(&mut self, name: &str, value: Value) -> Result<Value, String>
fn get_vvar(&mut self, name: &str) -> Result<Value, String>
fn get_option(&mut self, name: &str) -> Result<Value, String>
fn set_option(&mut self, name: &str, value: Value) -> Result<(), String>
fn out_write(&mut self, str: &str) -> Result<(), String>
fn err_write(&mut self, str: &str) -> Result<(), String>
fn report_error(&mut self, str: &str) -> Result<(), String>
fn get_buffers(&mut self) -> Result<Vec<Buffer>, String>
fn get_current_buffer(&mut self) -> Result<Buffer, String>
fn set_current_buffer(&mut self, buffer: &Buffer) -> Result<(), String>
fn get_windows(&mut self) -> Result<Vec<Window>, String>
fn get_current_window(&mut self) -> Result<Window, String>
fn set_current_window(&mut self, window: &Window) -> Result<(), String>
fn get_tabpages(&mut self) -> Result<Vec<Tabpage>, String>
fn get_current_tabpage(&mut self) -> Result<Tabpage, String>
fn set_current_tabpage(&mut self, tabpage: &Tabpage) -> Result<(), String>
fn subscribe(&mut self, event: &str) -> Result<(), String>
fn unsubscribe(&mut self, event: &str) -> Result<(), String>
fn name_to_color(&mut self, name: &str) -> Result<u64, String>
fn get_api_info(&mut self) -> Result<Vec<Value>, String>
Implementors
impl NeovimApi for Neovim