import { nvim_set_option_value } from "https://deno.land/x/denops_std@v5.0.2/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.