Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/function/nvim/mod.ts>nvim_win_call

📚 Standard module for denops.vim
Go to Latest
function nvim_win_call
import { nvim_win_call } from "https://deno.land/x/denops_std@v5.2.0/function/nvim/mod.ts";

Calls a function with window as temporary current window.

Attributes: vim.api only

Parameters: {window} Window handle, or 0 for current window {fun} Function to call inside the window (currently lua callable only)

Return: Return value of function. NB: will deepcopy lua values currently, use upvalues to send lua references in and out.

See also: win_execute() nvim_buf_call()

Parameters

denops: Denops
window: unknown
fun: unknown

Returns

Promise<unknown>