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_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.6.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>