pub struct Neovim {
pub session: Session,
}
Fields§
§session: Session
Implementations§
Source§impl 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§
Source§impl NeovimApi for Neovim
impl NeovimApi for Neovim
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn execute_lua(
&mut self,
code: &str,
args: Vec<Value>,
) -> Result<Value, CallError>
fn execute_lua( &mut self, code: &str, args: Vec<Value>, ) -> Result<Value, CallError>
since: 3
Source§fn 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
Source§fn 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
Source§fn get_keymap(
&mut self,
mode: &str,
) -> Result<Vec<Vec<(Value, Value)>>, CallError>
fn get_keymap( &mut self, mode: &str, ) -> Result<Vec<Vec<(Value, Value)>>, CallError>
since: 3
Source§fn 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
Source§fn 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
Source§impl NeovimApiAsync for Neovim
impl NeovimApiAsync for Neovim
Source§fn ui_detach_async(&mut self) -> AsyncCall<'_, ()>
fn ui_detach_async(&mut self) -> AsyncCall<'_, ()>
since: 1
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn get_current_line_async(&mut self) -> AsyncCall<'_, String>
fn get_current_line_async(&mut self) -> AsyncCall<'_, String>
since: 1
Source§fn del_current_line_async(&mut self) -> AsyncCall<'_, ()>
fn del_current_line_async(&mut self) -> AsyncCall<'_, ()>
since: 1
Source§fn get_current_buf_async(&mut self) -> AsyncCall<'_, Buffer>
fn get_current_buf_async(&mut self) -> AsyncCall<'_, Buffer>
since: 1
Source§fn get_current_win_async(&mut self) -> AsyncCall<'_, Window>
fn get_current_win_async(&mut self) -> AsyncCall<'_, Window>
since: 1
Source§fn get_current_tabpage_async(&mut self) -> AsyncCall<'_, Tabpage>
fn get_current_tabpage_async(&mut self) -> AsyncCall<'_, Tabpage>
since: 1
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn get_chan_info_async(
&mut self,
chan: i64,
) -> AsyncCall<'_, Vec<(Value, Value)>>
fn get_chan_info_async( &mut self, chan: i64, ) -> AsyncCall<'_, Vec<(Value, Value)>>
since: 4
Auto Trait Implementations§
impl Freeze for Neovim
impl !RefUnwindSafe for Neovim
impl Send for Neovim
impl Sync for Neovim
impl Unpin for Neovim
impl !UnwindSafe for Neovim
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more