Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.pyeval

Dark deno-powered completion framework for neovim/Vim
Very Popular
Go to Latest
function fn.pyeval
import { fn } from "https://deno.land/x/ddc_vim@v4.0.0/deps.ts";
const { pyeval } = fn;

Evaluate Python expression {expr} and return its result converted to Vim data structures. Numbers and strings are returned as they are (strings are copied though). Lists are represented as Vim List type. Dictionaries are represented as Vim Dictionary type, non-string keys result in error. Note that in a :def function local variables are not visible to {expr}.

Can also be used as a method:

GetExpr()->pyeval()

only available when compiled with the +python feature

Parameters

denops: Denops
expr: unknown

Returns

Promise<unknown>