Skip to main content
Module

x/ddc_vim/deps.ts>fn.server2client

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.server2client
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { server2client } = fn;

Send a reply string to {clientid}. The most recent {clientid} that sent a string can be retrieved with expand(""). {only available when compiled with the |+clientserver| feature} Returns zero for success, -1 for failure. Note: This id has to be stored before the next command can be received. I.e. before returning from the received command and before calling any commands that waits for input. See also |clientserver|. Example: :echo server2client(expand(""), "HELLO") Can also be used as a |method|: GetClientId()->server2client(string)

Parameters

denops: Denops
clientid: unknown
string: unknown

Returns

Promise<unknown>