Skip to main content
Module

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

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

Calls a function with window as temporary current window.

Attributes: Lua 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>