Struct neovim::Session [] [src]

pub struct Session {
    pub metadata: Metadata,
    // some fields omitted
}

An active Neovim session.

Fields

Methods

impl Session
[src]

Connect to a Neovim instance over TCP.

Connect to a Neovim instance using this process' standard input and output. Useful if Neovim started this process.

Connect to a Neovim instance by spawning a new one. Automatically passes --embed as a command-line parameter.

Uses nvim as the default command for launching Neovim, but this can be overridden with the NVIM_BIN environment variable.

Connect to a Neovim instance over a Unix socket. Currently unimplemented.

Call a method over RPC.

Call a method over RPC, synchronously.

Returns a reference to the TCP socket address used by this session.

If the connection isn't over TCP, this method returns None.