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

x/ddc_vim/deps.ts>vars.globalOptions

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

Global options (globalOptions or go)

import { Denops } from "../mod.ts";
import { globalOptions } from "../variable/mod.ts";

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

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

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

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

type

Getter & Setter & Remover