import { remote_peek } from "https://deno.land/x/denops_std@v4.1.4/function/vim/mod.ts";
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()