Skip to main content
Module

x/ddc_vim/deps.ts>vars.options

Dark deno-powered completion framework for neovim/Vim
Latest
variable vars.options
import { vars } from "https://deno.land/x/ddc_vim@v4.3.1/deps.ts";
const { options } = vars;

Options (options or o)

import { Denops } from "../mod.ts";
import { options } from "../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