Skip to main content
Module

x/denops_std/function/nvim/mod.ts>nvim_set_option_value

📚 Standard module for denops.vim
Go to Latest
function nvim_set_option_value
import { nvim_set_option_value } from "https://deno.land/x/denops_std@v6.4.0/function/nvim/mod.ts";

Sets the value of an option. The behavior of this function matches that of :set: for global-local options, both the global and local value are set unless otherwise specified with {scope}.

Note the options {win} and {buf} cannot be used together.

Parameters:

  • {name} Option name
  • {value} New option value
  • {opts} Optional parameters - scope: One of "global" or "local". Analogous to :setglobal and :setlocal, respectively. - win: window-ID. Used for setting window local option. - buf: Buffer number. Used for setting buffer local option.

Parameters

denops: Denops
name: unknown
value: unknown
opts: unknown

Returns

Promise<unknown>