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