Trait neovim_lib::neovim_api::NeovimApi [] [src]

pub trait NeovimApi {
    fn ui_detach(&mut self) -> Result<(), CallError>;
fn ui_try_resize(
        &mut self,
        width: u64,
        height: u64
    ) -> Result<(), CallError>;
fn ui_set_option(
        &mut self,
        name: &str,
        value: Value
    ) -> Result<(), CallError>;
fn command(&mut self, command: &str) -> Result<(), CallError>;
fn get_hl_by_name(
        &mut self,
        name: &str,
        rgb: bool
    ) -> Result<Vec<(Value, Value)>, CallError>;
fn get_hl_by_id(
        &mut self,
        hl_id: u64,
        rgb: bool
    ) -> Result<Vec<(Value, Value)>, CallError>;
fn feedkeys(
        &mut self,
        keys: &str,
        mode: &str,
        escape_csi: bool
    ) -> Result<(), CallError>;
fn input(&mut self, keys: &str) -> Result<u64, CallError>;
fn replace_termcodes(
        &mut self,
        str: &str,
        from_part: bool,
        do_lt: bool,
        special: bool
    ) -> Result<String, CallError>;
fn command_output(&mut self, str: &str) -> Result<String, CallError>;
fn eval(&mut self, expr: &str) -> Result<Value, CallError>;
fn call_function(
        &mut self,
        fname: &str,
        args: Vec<Value>
    ) -> Result<Value, CallError>;
fn execute_lua(
        &mut self,
        code: &str,
        args: Vec<Value>
    ) -> Result<Value, CallError>;
fn strwidth(&mut self, text: &str) -> Result<u64, CallError>;
fn list_runtime_paths(&mut self) -> Result<Vec<String>, CallError>;
fn set_current_dir(&mut self, dir: &str) -> Result<(), CallError>;
fn get_current_line(&mut self) -> Result<String, CallError>;
fn set_current_line(&mut self, line: &str) -> Result<(), CallError>;
fn del_current_line(&mut self) -> Result<(), CallError>;
fn get_var(&mut self, name: &str) -> Result<Value, CallError>;
fn set_var(&mut self, name: &str, value: Value) -> Result<(), CallError>;
fn del_var(&mut self, name: &str) -> Result<(), CallError>;
fn get_vvar(&mut self, name: &str) -> Result<Value, CallError>;
fn get_option(&mut self, name: &str) -> Result<Value, CallError>;
fn set_option(&mut self, name: &str, value: Value) -> Result<(), CallError>;
fn out_write(&mut self, str: &str) -> Result<(), CallError>;
fn err_write(&mut self, str: &str) -> Result<(), CallError>;
fn err_writeln(&mut self, str: &str) -> Result<(), CallError>;
fn list_bufs(&mut self) -> Result<Vec<Buffer>, CallError>;
fn get_current_buf(&mut self) -> Result<Buffer, CallError>;
fn set_current_buf(&mut self, buffer: &Buffer) -> Result<(), CallError>;
fn list_wins(&mut self) -> Result<Vec<Window>, CallError>;
fn get_current_win(&mut self) -> Result<Window, CallError>;
fn set_current_win(&mut self, window: &Window) -> Result<(), CallError>;
fn list_tabpages(&mut self) -> Result<Vec<Tabpage>, CallError>;
fn get_current_tabpage(&mut self) -> Result<Tabpage, CallError>;
fn set_current_tabpage(
        &mut self,
        tabpage: &Tabpage
    ) -> Result<(), CallError>;
fn subscribe(&mut self, event: &str) -> Result<(), CallError>;
fn unsubscribe(&mut self, event: &str) -> Result<(), CallError>;
fn get_color_by_name(&mut self, name: &str) -> Result<u64, CallError>;
fn get_color_map(&mut self) -> Result<Vec<(Value, Value)>, CallError>;
fn get_mode(&mut self) -> Result<Vec<(Value, Value)>, CallError>;
fn get_keymap(
        &mut self,
        mode: &str
    ) -> Result<Vec<Vec<(Value, Value)>>, CallError>;
fn get_api_info(&mut self) -> Result<Vec<Value>, CallError>;
fn call_atomic(
        &mut self,
        calls: Vec<Value>
    ) -> Result<Vec<Value>, CallError>; }

Required Methods

since: 1

since: 1

since: 1

since: 1

since: 3

since: 3

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 3

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 1

since: 2

since: 3

since: 1

since: 1

Implementors