Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>vars.environment

Dark deno-powered completion framework for neovim/Vim
Go to Latest
variable vars.environment
import { vars } from "https://deno.land/x/ddc_vim@v4.1.0/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");
}

type

Getter & Setter & Remover