Struct nvim_rs::neovim::Neovim [−][src]
Expand description
An active Neovim session.
Implementations
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>>
Register as a remote UI.
After this method is called, the client will receive redraw notifications.
pub async fn ui_try_resize_grid(
&self,
grid: i64,
width: i64,
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 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 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_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 notify(
&self,
msg: &str,
log_level: i64,
opts: Vec<(Value, 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 echo(
&self,
chunks: Vec<Value>,
history: bool,
opts: Vec<(Value, Value)>
) -> Result<(), Box<CallError>>
pub async fn open_term(
&self,
buffer: &Buffer<W>,
opts: Vec<(Value, Value)>
) -> Result<i64, Box<CallError>>
pub async fn put(
&self,
lines: Vec<String>,
typ: &str,
after: bool,
follow: bool
) -> Result<(), Box<CallError>>
pub async fn get_context(
&self,
opts: Vec<(Value, Value)>
) -> Result<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 get_commands(
&self,
opts: Vec<(Value, Value)>
) -> Result<Vec<(Value, 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 parse_expression(
&self,
expr: &str,
flags: &str,
highlight: bool
) -> Result<Vec<(Value, Value)>, Box<CallError>>
Trait Implementations
Auto Trait Implementations
impl<W> !RefUnwindSafe for Neovim<W>
impl<W> !UnwindSafe for Neovim<W>
Blanket Implementations
Mutably borrows from an owned value. Read more