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

x/ddc_vim/deps.ts>vars.localOptions

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
variable vars.localOptions
import { vars } from "https://deno.land/x/ddc_vim@v3.9.1/deps.ts";
const { localOptions } = vars;

Local options (localOptions or lo)

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

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

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

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

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

type

Getter & Setter & Remover