Skip to main content
Module

x/dpp_vim/deps.ts>vars.options

Dark powered plugin manager for Vim/neovim
Latest
variable vars.options
import { vars } from "https://deno.land/x/dpp_vim@v0.2.0/deps.ts";
const { options } = vars;

Options (options or o)

import type { Denops } from "https://deno.land/x/denops_std@v0.2.0/mod.ts";
import { options } from "https://deno.land/x/denops_std@v0.2.0/variable/mod.ts";

export async function main(denops: Denops): Promise<void> {
  // Set option
  await options.set(denops, "filetype", "world");

  // Get option
  console.log(await options.get(denops, "filetype"));

  // Reset option
  await options.remove(denops, "filetype");
}

Note that options.get() returns defaultValue when the option is falsy.

type

Getter & Setter & Remover