Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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@v6.4.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>