Struct neovim_lib::neovim::Neovim
source · [−]pub struct Neovim {
pub session: Session,
}Fields
session: SessionImplementations
sourceimpl Neovim
impl Neovim
pub fn new(session: Session) -> Neovim
sourcepub fn ui_attach(
&mut self,
width: i64,
height: i64,
opts: &UiAttachOptions
) -> Result<(), CallError>
pub fn ui_attach(
&mut self,
width: i64,
height: i64,
opts: &UiAttachOptions
) -> Result<(), CallError>
Register as a remote UI.
After this method is called, the client will receive redraw notifications.
sourcepub fn quit_no_save(&mut self) -> Result<(), CallError>
pub fn quit_no_save(&mut self) -> Result<(), CallError>
Send a quit command to Nvim. The quit command is ‘qa!’ which will make Nvim quit without saving anything.
Trait Implementations
sourceimpl NeovimApi for Neovim
impl NeovimApi for Neovim
sourcefn get_hl_by_name(
&mut self,
name: &str,
rgb: bool
) -> Result<Vec<(Value, Value)>, CallError>
fn get_hl_by_name(
&mut self,
name: &str,
rgb: bool
) -> Result<Vec<(Value, Value)>, CallError>
since: 3
sourcefn get_hl_by_id(
&mut self,
hl_id: i64,
rgb: bool
) -> Result<Vec<(Value, Value)>, CallError>
fn get_hl_by_id(
&mut self,
hl_id: i64,
rgb: bool
) -> Result<Vec<(Value, Value)>, CallError>
since: 3
sourcefn feedkeys(
&mut self,
keys: &str,
mode: &str,
escape_csi: bool
) -> Result<(), CallError>
fn feedkeys(
&mut self,
keys: &str,
mode: &str,
escape_csi: bool
) -> Result<(), CallError>
since: 1
sourcefn replace_termcodes(
&mut self,
str: &str,
from_part: bool,
do_lt: bool,
special: bool
) -> Result<String, CallError>
fn replace_termcodes(
&mut self,
str: &str,
from_part: bool,
do_lt: bool,
special: bool
) -> Result<String, CallError>
since: 1
sourcefn call_function(
&mut self,
fname: &str,
args: Vec<Value>
) -> Result<Value, CallError>
fn call_function(
&mut self,
fname: &str,
args: Vec<Value>
) -> Result<Value, CallError>
since: 1
sourcefn call_dict_function(
&mut self,
dict: Value,
fname: &str,
args: Vec<Value>
) -> Result<Value, CallError>
fn call_dict_function(
&mut self,
dict: Value,
fname: &str,
args: Vec<Value>
) -> Result<Value, CallError>
since: 4
sourcefn get_current_line(&mut self) -> Result<String, CallError>
fn get_current_line(&mut self) -> Result<String, CallError>
since: 1
sourcefn del_current_line(&mut self) -> Result<(), CallError>
fn del_current_line(&mut self) -> Result<(), CallError>
since: 1
sourcefn get_current_buf(&mut self) -> Result<Buffer, CallError>
fn get_current_buf(&mut self) -> Result<Buffer, CallError>
since: 1
sourcefn get_current_win(&mut self) -> Result<Window, CallError>
fn get_current_win(&mut self) -> Result<Window, CallError>
since: 1
sourcefn get_current_tabpage(&mut self) -> Result<Tabpage, CallError>
fn get_current_tabpage(&mut self) -> Result<Tabpage, CallError>
since: 1
sourcefn get_commands(
&mut self,
opts: Vec<(Value, Value)>
) -> Result<Vec<(Value, Value)>, CallError>
fn get_commands(
&mut self,
opts: Vec<(Value, Value)>
) -> Result<Vec<(Value, Value)>, CallError>
since: 4
sourcefn set_client_info(
&mut self,
name: &str,
version: Vec<(Value, Value)>,
typ: &str,
methods: Vec<(Value, Value)>,
attributes: Vec<(Value, Value)>
) -> Result<(), CallError>
fn set_client_info(
&mut self,
name: &str,
version: Vec<(Value, Value)>,
typ: &str,
methods: Vec<(Value, Value)>,
attributes: Vec<(Value, Value)>
) -> Result<(), CallError>
since: 4
sourceimpl NeovimApiAsync for Neovim
impl NeovimApiAsync for Neovim
sourcefn ui_detach_async(&mut self) -> AsyncCall<'_, ()>
fn ui_detach_async(&mut self) -> AsyncCall<'_, ()>
since: 1
sourcefn command_async(&mut self, command: &str) -> AsyncCall<'_, ()>
fn command_async(&mut self, command: &str) -> AsyncCall<'_, ()>
since: 1
sourcefn get_hl_by_name_async(
&mut self,
name: &str,
rgb: bool
) -> AsyncCall<'_, Vec<(Value, Value)>>
fn get_hl_by_name_async(
&mut self,
name: &str,
rgb: bool
) -> AsyncCall<'_, Vec<(Value, Value)>>
since: 3
sourcefn get_hl_by_id_async(
&mut self,
hl_id: i64,
rgb: bool
) -> AsyncCall<'_, Vec<(Value, Value)>>
fn get_hl_by_id_async(
&mut self,
hl_id: i64,
rgb: bool
) -> AsyncCall<'_, Vec<(Value, Value)>>
since: 3
sourcefn feedkeys_async(
&mut self,
keys: &str,
mode: &str,
escape_csi: bool
) -> AsyncCall<'_, ()>
fn feedkeys_async(
&mut self,
keys: &str,
mode: &str,
escape_csi: bool
) -> AsyncCall<'_, ()>
since: 1
sourcefn input_async(&mut self, keys: &str) -> AsyncCall<'_, i64>
fn input_async(&mut self, keys: &str) -> AsyncCall<'_, i64>
since: 1
sourcefn replace_termcodes_async(
&mut self,
str: &str,
from_part: bool,
do_lt: bool,
special: bool
) -> AsyncCall<'_, String>
fn replace_termcodes_async(
&mut self,
str: &str,
from_part: bool,
do_lt: bool,
special: bool
) -> AsyncCall<'_, String>
since: 1
sourcefn command_output_async(&mut self, command: &str) -> AsyncCall<'_, String>
fn command_output_async(&mut self, command: &str) -> AsyncCall<'_, String>
since: 1
sourcefn eval_async(&mut self, expr: &str) -> AsyncCall<'_, Value>
fn eval_async(&mut self, expr: &str) -> AsyncCall<'_, Value>
since: 1
sourcefn execute_lua_async(
&mut self,
code: &str,
args: Vec<Value>
) -> AsyncCall<'_, Value>
fn execute_lua_async(
&mut self,
code: &str,
args: Vec<Value>
) -> AsyncCall<'_, Value>
since: 3
sourcefn call_function_async(
&mut self,
fname: &str,
args: Vec<Value>
) -> AsyncCall<'_, Value>
fn call_function_async(
&mut self,
fname: &str,
args: Vec<Value>
) -> AsyncCall<'_, Value>
since: 1
sourcefn call_dict_function_async(
&mut self,
dict: Value,
fname: &str,
args: Vec<Value>
) -> AsyncCall<'_, Value>
fn call_dict_function_async(
&mut self,
dict: Value,
fname: &str,
args: Vec<Value>
) -> AsyncCall<'_, Value>
since: 4
sourcefn strwidth_async(&mut self, text: &str) -> AsyncCall<'_, i64>
fn strwidth_async(&mut self, text: &str) -> AsyncCall<'_, i64>
since: 1
sourcefn list_runtime_paths_async(&mut self) -> AsyncCall<'_, Vec<String>>
fn list_runtime_paths_async(&mut self) -> AsyncCall<'_, Vec<String>>
since: 1
sourcefn set_current_dir_async(&mut self, dir: &str) -> AsyncCall<'_, ()>
fn set_current_dir_async(&mut self, dir: &str) -> AsyncCall<'_, ()>
since: 1
sourcefn get_current_line_async(&mut self) -> AsyncCall<'_, String>
fn get_current_line_async(&mut self) -> AsyncCall<'_, String>
since: 1
sourcefn set_current_line_async(&mut self, line: &str) -> AsyncCall<'_, ()>
fn set_current_line_async(&mut self, line: &str) -> AsyncCall<'_, ()>
since: 1
sourcefn del_current_line_async(&mut self) -> AsyncCall<'_, ()>
fn del_current_line_async(&mut self) -> AsyncCall<'_, ()>
since: 1
sourcefn get_var_async(&mut self, name: &str) -> AsyncCall<'_, Value>
fn get_var_async(&mut self, name: &str) -> AsyncCall<'_, Value>
since: 1
sourcefn del_var_async(&mut self, name: &str) -> AsyncCall<'_, ()>
fn del_var_async(&mut self, name: &str) -> AsyncCall<'_, ()>
since: 1
sourcefn get_vvar_async(&mut self, name: &str) -> AsyncCall<'_, Value>
fn get_vvar_async(&mut self, name: &str) -> AsyncCall<'_, Value>
since: 1
sourcefn get_option_async(&mut self, name: &str) -> AsyncCall<'_, Value>
fn get_option_async(&mut self, name: &str) -> AsyncCall<'_, Value>
since: 1
sourcefn out_write_async(&mut self, str: &str) -> AsyncCall<'_, ()>
fn out_write_async(&mut self, str: &str) -> AsyncCall<'_, ()>
since: 1
sourcefn err_write_async(&mut self, str: &str) -> AsyncCall<'_, ()>
fn err_write_async(&mut self, str: &str) -> AsyncCall<'_, ()>
since: 1
sourcefn err_writeln_async(&mut self, str: &str) -> AsyncCall<'_, ()>
fn err_writeln_async(&mut self, str: &str) -> AsyncCall<'_, ()>
since: 1
sourcefn list_bufs_async(&mut self) -> AsyncCall<'_, Vec<Buffer>>
fn list_bufs_async(&mut self) -> AsyncCall<'_, Vec<Buffer>>
since: 1
sourcefn get_current_buf_async(&mut self) -> AsyncCall<'_, Buffer>
fn get_current_buf_async(&mut self) -> AsyncCall<'_, Buffer>
since: 1
sourcefn set_current_buf_async(&mut self, buffer: &Buffer) -> AsyncCall<'_, ()>
fn set_current_buf_async(&mut self, buffer: &Buffer) -> AsyncCall<'_, ()>
since: 1
sourcefn list_wins_async(&mut self) -> AsyncCall<'_, Vec<Window>>
fn list_wins_async(&mut self) -> AsyncCall<'_, Vec<Window>>
since: 1
sourcefn get_current_win_async(&mut self) -> AsyncCall<'_, Window>
fn get_current_win_async(&mut self) -> AsyncCall<'_, Window>
since: 1
sourcefn set_current_win_async(&mut self, window: &Window) -> AsyncCall<'_, ()>
fn set_current_win_async(&mut self, window: &Window) -> AsyncCall<'_, ()>
since: 1
sourcefn list_tabpages_async(&mut self) -> AsyncCall<'_, Vec<Tabpage>>
fn list_tabpages_async(&mut self) -> AsyncCall<'_, Vec<Tabpage>>
since: 1
sourcefn get_current_tabpage_async(&mut self) -> AsyncCall<'_, Tabpage>
fn get_current_tabpage_async(&mut self) -> AsyncCall<'_, Tabpage>
since: 1
sourcefn set_current_tabpage_async(&mut self, tabpage: &Tabpage) -> AsyncCall<'_, ()>
fn set_current_tabpage_async(&mut self, tabpage: &Tabpage) -> AsyncCall<'_, ()>
since: 1
sourcefn create_namespace_async(&mut self, name: &str) -> AsyncCall<'_, i64>
fn create_namespace_async(&mut self, name: &str) -> AsyncCall<'_, i64>
since: 5
sourcefn subscribe_async(&mut self, event: &str) -> AsyncCall<'_, ()>
fn subscribe_async(&mut self, event: &str) -> AsyncCall<'_, ()>
since: 1
sourcefn unsubscribe_async(&mut self, event: &str) -> AsyncCall<'_, ()>
fn unsubscribe_async(&mut self, event: &str) -> AsyncCall<'_, ()>
since: 1
sourcefn get_color_by_name_async(&mut self, name: &str) -> AsyncCall<'_, i64>
fn get_color_by_name_async(&mut self, name: &str) -> AsyncCall<'_, i64>
since: 1
sourcefn get_keymap_async(
&mut self,
mode: &str
) -> AsyncCall<'_, Vec<Vec<(Value, Value)>>>
fn get_keymap_async(
&mut self,
mode: &str
) -> AsyncCall<'_, Vec<Vec<(Value, Value)>>>
since: 3
sourcefn get_commands_async(
&mut self,
opts: Vec<(Value, Value)>
) -> AsyncCall<'_, Vec<(Value, Value)>>
fn get_commands_async(
&mut self,
opts: Vec<(Value, Value)>
) -> AsyncCall<'_, Vec<(Value, Value)>>
since: 4
sourcefn get_api_info_async(&mut self) -> AsyncCall<'_, Vec<Value>>
fn get_api_info_async(&mut self) -> AsyncCall<'_, Vec<Value>>
since: 1
sourcefn set_client_info_async(
&mut self,
name: &str,
version: Vec<(Value, Value)>,
typ: &str,
methods: Vec<(Value, Value)>,
attributes: Vec<(Value, Value)>
) -> AsyncCall<'_, ()>
fn set_client_info_async(
&mut self,
name: &str,
version: Vec<(Value, Value)>,
typ: &str,
methods: Vec<(Value, Value)>,
attributes: Vec<(Value, Value)>
) -> AsyncCall<'_, ()>
since: 4
sourcefn list_chans_async(&mut self) -> AsyncCall<'_, Vec<Value>>
fn list_chans_async(&mut self) -> AsyncCall<'_, Vec<Value>>
since: 4
sourcefn parse_expression_async(
&mut self,
expr: &str,
flags: &str,
highlight: bool
) -> AsyncCall<'_, Vec<(Value, Value)>>
fn parse_expression_async(
&mut self,
expr: &str,
flags: &str,
highlight: bool
) -> AsyncCall<'_, Vec<(Value, Value)>>
since: 4
sourcefn list_uis_async(&mut self) -> AsyncCall<'_, Vec<Value>>
fn list_uis_async(&mut self) -> AsyncCall<'_, Vec<Value>>
since: 4
sourcefn get_proc_async(&mut self, pid: i64) -> AsyncCall<'_, Value>
fn get_proc_async(&mut self, pid: i64) -> AsyncCall<'_, Value>
since: 4
Auto Trait Implementations
impl !RefUnwindSafe for Neovim
impl Send for Neovim
impl Sync for Neovim
impl Unpin for Neovim
impl !UnwindSafe for Neovim
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more