Expand description
An active Neovim session.
Implementations
sourceimpl<W> Neovim<W> where
W: AsyncWrite + Send + Unpin + 'static,
impl<W> Neovim<W> where
W: AsyncWrite + Send + Unpin + 'static,
pub fn new<H, R>(
reader: R,
writer: W,
handler: H
) -> (Neovim<<H as Handler>::Writer>, impl Future<Output = Result<(), Box<LoopError>>>) where
R: AsyncRead + Send + Unpin + 'static,
H: Handler<Writer = W> + Spawner,
pub async fn call(
&self,
method: &str,
args: Vec<Value>
) -> Result<Result<Value, Value>, Box<CallError>>
sourceimpl<W> Neovim<W> where
W: AsyncWrite + Send + Unpin + 'static,
impl<W> Neovim<W> where
W: AsyncWrite + Send + Unpin + 'static,
pub async fn command_output(
&self,
command: &str
) -> Result<String, Box<CallError>>
pub async fn execute_lua(
&self,
code: &str,
args: Vec<Value>
) -> Result<Value, Box<CallError>>
pub async fn ui_detach(&self) -> Result<(), Box<CallError>>
pub async fn ui_try_resize(
&self,
width: i64,
height: i64
) -> Result<(), Box<CallError>>
pub async fn ui_set_option(
&self,
name: &str,
value: Value
) -> Result<(), Box<CallError>>
pub async fn ui_try_resize_grid(
&self,
grid: i64,
width: i64,
height: i64
) -> Result<(), Box<CallError>>
pub async fn ui_pum_set_height(&self, height: i64) -> Result<(), Box<CallError>>
pub async fn ui_pum_set_bounds(
&self,
width: f64,
height: f64,
row: f64,
col: f64
) -> Result<(), Box<CallError>>
pub async fn exec(
&self,
src: &str,
output: bool
) -> Result<String, Box<CallError>>
pub async fn command(&self, command: &str) -> Result<(), Box<CallError>>
pub async fn get_hl_by_name(
&self,
name: &str,
rgb: bool
) -> Result<Vec<(Value, Value)>, Box<CallError>>
pub async fn get_hl_by_id(
&self,
hl_id: i64,
rgb: bool
) -> Result<Vec<(Value, Value)>, Box<CallError>>
pub async fn get_hl_id_by_name(&self, name: &str) -> Result<i64, Box<CallError>>
pub async fn set_hl(
&self,
ns_id: i64,
name: &str,
val: Vec<(Value, Value)>
) -> Result<(), Box<CallError>>
pub async fn feedkeys(
&self,
keys: &str,
mode: &str,
escape_csi: bool
) -> Result<(), Box<CallError>>
pub async fn input(&self, keys: &str) -> Result<i64, Box<CallError>>
pub async fn input_mouse(
&self,
button: &str,
action: &str,
modifier: &str,
grid: i64,
row: i64,
col: i64
) -> Result<(), Box<CallError>>
pub async fn replace_termcodes(
&self,
str: &str,
from_part: bool,
do_lt: bool,
special: bool
) -> Result<String, Box<CallError>>
pub async fn eval(&self, expr: &str) -> Result<Value, Box<CallError>>
pub async fn exec_lua(
&self,
code: &str,
args: Vec<Value>
) -> Result<Value, Box<CallError>>
pub async fn notify(
&self,
msg: &str,
log_level: i64,
opts: Vec<(Value, Value)>
) -> Result<Value, Box<CallError>>
pub async fn call_function(
&self,
fname: &str,
args: Vec<Value>
) -> Result<Value, Box<CallError>>
pub async fn call_dict_function(
&self,
dict: Value,
fname: &str,
args: Vec<Value>
) -> Result<Value, Box<CallError>>
pub async fn strwidth(&self, text: &str) -> Result<i64, Box<CallError>>
pub async fn list_runtime_paths(&self) -> Result<Vec<String>, Box<CallError>>
pub async fn get_runtime_file(
&self,
name: &str,
all: bool
) -> Result<Vec<String>, Box<CallError>>
pub async fn set_current_dir(&self, dir: &str) -> Result<(), Box<CallError>>
pub async fn get_current_line(&self) -> Result<String, Box<CallError>>
pub async fn set_current_line(&self, line: &str) -> Result<(), Box<CallError>>
pub async fn del_current_line(&self) -> Result<(), Box<CallError>>
pub async fn get_var(&self, name: &str) -> Result<Value, Box<CallError>>
pub async fn set_var(
&self,
name: &str,
value: Value
) -> Result<(), Box<CallError>>
pub async fn del_var(&self, name: &str) -> Result<(), Box<CallError>>
pub async fn get_vvar(&self, name: &str) -> Result<Value, Box<CallError>>
pub async fn set_vvar(
&self,
name: &str,
value: Value
) -> Result<(), Box<CallError>>
pub async fn get_option(&self, name: &str) -> Result<Value, Box<CallError>>
pub async fn get_all_options_info(
&self
) -> Result<Vec<(Value, Value)>, Box<CallError>>
pub async fn get_option_info(
&self,
name: &str
) -> Result<Vec<(Value, Value)>, Box<CallError>>
pub async fn set_option(
&self,
name: &str,
value: Value
) -> Result<(), Box<CallError>>
pub async fn echo(
&self,
chunks: Vec<Value>,
history: bool,
opts: Vec<(Value, Value)>
) -> Result<(), Box<CallError>>
pub async fn out_write(&self, str: &str) -> Result<(), Box<CallError>>
pub async fn err_write(&self, str: &str) -> Result<(), Box<CallError>>
pub async fn err_writeln(&self, str: &str) -> Result<(), Box<CallError>>
pub async fn set_current_buf(
&self,
buffer: &Buffer<W>
) -> Result<(), Box<CallError>>
pub async fn set_current_win(
&self,
window: &Window<W>
) -> Result<(), Box<CallError>>
pub async fn open_term(
&self,
buffer: &Buffer<W>,
opts: Vec<(Value, Value)>
) -> Result<i64, Box<CallError>>
pub async fn chan_send(
&self,
chan: i64,
data: &str
) -> Result<(), Box<CallError>>
pub async fn set_current_tabpage(
&self,
tabpage: &Tabpage<W>
) -> Result<(), Box<CallError>>
pub async fn create_namespace(&self, name: &str) -> Result<i64, Box<CallError>>
pub async fn get_namespaces(
&self
) -> Result<Vec<(Value, Value)>, Box<CallError>>
pub async fn paste(
&self,
data: &str,
crlf: bool,
phase: i64
) -> Result<bool, Box<CallError>>
pub async fn put(
&self,
lines: Vec<String>,
typ: &str,
after: bool,
follow: bool
) -> Result<(), Box<CallError>>
pub async fn subscribe(&self, event: &str) -> Result<(), Box<CallError>>
pub async fn unsubscribe(&self, event: &str) -> Result<(), Box<CallError>>
pub async fn get_color_by_name(&self, name: &str) -> Result<i64, Box<CallError>>
pub async fn get_color_map(&self) -> Result<Vec<(Value, Value)>, Box<CallError>>
pub async fn get_context(
&self,
opts: Vec<(Value, Value)>
) -> Result<Vec<(Value, Value)>, Box<CallError>>
pub async fn load_context(
&self,
dict: Vec<(Value, Value)>
) -> Result<Value, Box<CallError>>
pub async fn get_mode(&self) -> Result<Vec<(Value, Value)>, Box<CallError>>
pub async fn get_keymap(
&self,
mode: &str
) -> Result<Vec<Vec<(Value, Value)>>, Box<CallError>>
pub async fn set_keymap(
&self,
mode: &str,
lhs: &str,
rhs: &str,
opts: Vec<(Value, Value)>
) -> Result<(), Box<CallError>>
pub async fn del_keymap(
&self,
mode: &str,
lhs: &str
) -> Result<(), Box<CallError>>
pub async fn get_commands(
&self,
opts: Vec<(Value, Value)>
) -> Result<Vec<(Value, Value)>, Box<CallError>>
pub async fn get_api_info(&self) -> Result<Vec<Value>, Box<CallError>>
pub async fn set_client_info(
&self,
name: &str,
version: Vec<(Value, Value)>,
typ: &str,
methods: Vec<(Value, Value)>,
attributes: Vec<(Value, Value)>
) -> Result<(), Box<CallError>>
pub async fn get_chan_info(
&self,
chan: i64
) -> Result<Vec<(Value, Value)>, Box<CallError>>
pub async fn list_chans(&self) -> Result<Vec<Value>, Box<CallError>>
pub async fn call_atomic(
&self,
calls: Vec<Value>
) -> Result<Vec<Value>, Box<CallError>>
pub async fn parse_expression(
&self,
expr: &str,
flags: &str,
highlight: bool
) -> Result<Vec<(Value, Value)>, Box<CallError>>
pub async fn list_uis(&self) -> Result<Vec<Value>, Box<CallError>>
pub async fn get_proc_children(
&self,
pid: i64
) -> Result<Vec<Value>, Box<CallError>>
pub async fn get_proc(&self, pid: i64) -> Result<Value, Box<CallError>>
pub async fn set_decoration_provider(
&self,
ns_id: i64,
opts: Vec<(Value, Value)>
) -> Result<(), Box<CallError>>
pub async fn del_mark(&self, name: &str) -> Result<bool, Box<CallError>>
pub async fn get_mark(&self, name: &str) -> Result<Vec<Value>, Box<CallError>>
sourceimpl<W> Neovim<W> where
W: AsyncWrite + Send + Unpin + 'static,
impl<W> Neovim<W> where
W: AsyncWrite + Send + Unpin + 'static,
pub async fn list_bufs(&self) -> Result<Vec<Buffer<W>>, Box<CallError>>
pub async fn get_current_buf(&self) -> Result<Buffer<W>, Box<CallError>>
pub async fn list_wins(&self) -> Result<Vec<Window<W>>, Box<CallError>>
pub async fn get_current_win(&self) -> Result<Window<W>, Box<CallError>>
pub async fn create_buf(
&self,
listed: bool,
scratch: bool
) -> Result<Buffer<W>, Box<CallError>>
pub async fn open_win(
&self,
buffer: &Buffer<W>,
enter: bool,
config: Vec<(Value, Value)>
) -> Result<Window<W>, Box<CallError>>
pub async fn list_tabpages(&self) -> Result<Vec<Tabpage<W>>, Box<CallError>>
pub async fn get_current_tabpage(&self) -> Result<Tabpage<W>, Box<CallError>>
Trait Implementations
impl<W> Eq for Neovim<W> where
W: AsyncWrite + Send + Unpin + 'static,
Auto Trait Implementations
impl<W> !RefUnwindSafe for Neovim<W>
impl<W> Send for Neovim<W>
impl<W> Sync for Neovim<W>
impl<W> Unpin for Neovim<W>
impl<W> !UnwindSafe for Neovim<W>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more