Skip to main content
Module

x/denops_std/option/types.ts>LocalOption

📚 Standard module for denops.vim
Go to Latest
interface LocalOption
implements Option<T>
import { type LocalOption } from "https://deno.land/x/denops_std@v6.3.0/option/types.ts";

A local option that can be retrieved and modified.

Type Parameters

T

The type of the option value.

Methods

getLocal(denops: Denops): Promise<T>

Gets the local value of the option.

setLocal(denops: Denops, value: T): Promise<void>

Sets the local value of the option.

resetLocal(denops: Denops): Promise<void>

Resets the local value of the option to its default value.

getBuffer(denops: Denops, bufnr: number): Promise<T>

Gets the value of the option for the specified buffer.

setBuffer(
denops: Denops,
bufnr: number,
value: T,
): Promise<void>

Sets the value of the option for the specified buffer.

getWindow(denops: Denops, winnr: number): Promise<T>

Gets the value of the option for the specified window.

setWindow(
denops: Denops,
winnr: number,
value: T,
): Promise<void>

Sets the value of the option for the specified window.