import { vars } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { environment } = vars;
Environment variables (environment
or e
)
import { Denops } from "../mod.ts";
import { environment } from "../variable/mod.ts";
export async function main(denops: Denops): Promise<void> {
// Set environment variable
await environment.set(denops, "DENOPS_HELLO", "world");
// Get environment variable
console.log(await environment.get(denops, "DENOPS_HELLO"));
// Remove environment variable
await environment.remove(denops, "DENOPS_HELLO");
}