vim._core.server
Methods3
function M.serverlist(opts: nil | table, addrs: string[]) -> string[] | vim.ServerInfo[]
Parameters
optsnil | tableOptions:
- opts.peer (boolean): If true, also discover peer servers.
- opts.info (boolean): If true, return a list of |vim.ServerInfo| dicts
instead of a list of addresses. Implies peer=true.
addrsstring[]Internal ("own") addresses, from serveraddresslist.
Returns
- string[] | vim.ServerInfo[]
function M.rebind_after_restart(canonical_addr: string, expected_uis: integer) -> nil
(Windows only) Called on the new server via nvimexeclua RPC from the old server (:restart). Windows named pipes can't be rebound immediately, so the new server starts on a temporary bootstrap address and polls until the canonical address is reclaimable.
Parameters
canonical_addrstringThe original --listen address to reclaim.
expected_uisintegerNumber of UIs expected to reattach (0 = don't wait).
Returns
- nil
function M.ex_session_restart(eap: vim._core.ExCmdArgs, extra: { quit_cmd: string }) -> nil
Called by exrestart(). Saves the current session and calls exrestart() (again) with the updated arguments.
TODO: https://github.com/neovim/neovim/issues/34204
Fields1
M.restart_canonical_addr : nil | string
(Windows only) Canonical --listen address persisted across restarts.