Struct neovim_lib::neovim::Neovim
[−]
[src]
pub struct Neovim { pub session: Session, }
Fields
session: Session
Methods
impl Neovim
[src]
fn new(session: Session) -> Neovim
fn ui_attach(&mut self,
width: u64,
height: u64,
opts: UiAttachOptions)
-> Result<(), CallError>
width: u64,
height: u64,
opts: UiAttachOptions)
-> Result<(), CallError>
Register as a remote UI.
After this method is called, the client will receive redraw notifications.
fn ui_detach(&mut self) -> Result<(), CallError>
Unregister as a remote UI.
fn ui_try_resize(&mut self, width: u64, height: u64) -> Result<(), CallError>
Notify nvim that the client window has resized.
If possible, nvim will send a redraw request to resize.
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
impl NeovimApi for Neovim
[src]
fn set_var(&mut self, name: &str, value: Value) -> Result<Value, CallError>
fn del_var(&mut self, name: &str) -> Result<Value, CallError>
fn command(&mut self, command: &str) -> Result<(), CallError>
fn feedkeys(&mut self,
keys: &str,
mode: &str,
escape_csi: bool)
-> Result<(), CallError>
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>
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>
fname: &str,
args: Vec<Value>)
-> Result<Value, CallError>