Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/vim/mod.ts>luaeval

๐Ÿ“š Standard module for denops.vim
Go to Latest
function luaeval
import { luaeval } from "https://deno.land/x/denops_std@v3.6.0/function/vim/mod.ts";

Evaluate Lua expression {expr} and return its result converted to Vim data structures. Second {expr} may hold additional argument accessible as _A inside first {expr}. Strings are returned as they are. Boolean objects are converted to numbers. Numbers are converted to |Float| values if vim was compiled with |+float| and to numbers otherwise. Dictionaries and lists obtained by vim.eval() are returned as-is. Other objects are returned as zero without any errors. See |lua-luaeval| for more details. Can also be used as a |method|: GetExpr()->luaeval() {only available when compiled with the |+lua| feature}

Parameters

denops: Denops
expr1: unknown
optional
expr2: unknown

Returns

Promise<unknown>