Skip to main content
Latest
function fn.setenv
import { fn } from "https://deno.land/x/denops_lsputil@v0.9.4/deps.ts";
const { setenv } = fn;

Set environment variable {name} to {val}. Example:

call setenv('HOME', '/home/myhome')

When {val} is v:null the environment variable is deleted. See also expr-env.

Can also be used as a method, the base is passed as the second argument:

GetPath()->setenv('PATH')

Parameters

denops: Denops
name: unknown
val: unknown

Returns

Promise<void>