Skip to main content
Module

x/ddc_vim/deps.ts>fn.remote_peek

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

Returns a positive number if there are available strings from {serverid}. Copies any reply string into the variable {retvar} if specified. {retvar} must be a string with the name of a variable. Returns zero if none are available. Returns -1 if something is wrong. See also |clientserver|. This function is not available in the |sandbox|. {only available when compiled with the |+clientserver| feature} Examples: :let repl = "" :echo "PEEK: ".remote_peek(id, "repl").": ".repl Can also be used as a |method|: ServerId()->remote_peek()

Parameters

denops: Denops
serverid: unknown
optional
retvar: unknown

Returns

Promise<unknown>