Skip to main content
Module

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

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

Execute Lua code. Parameters (if any) are available as ... inside the chunk. The chunk can return a value.

Only statements are executed. To evaluate an expression, prefix it with return: return my_function(...)

Attributes: RPC only

Parameters:

  • {code} Lua code to execute
  • {args} Arguments to the code

Return: Return value of Lua code if present or NIL.

Parameters

denops: Denops
code: unknown
args: unknown

Returns

Promise<unknown>