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

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

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

Gets the option information for one option Resulting dictionary has keys: • name: Name of the option (like 'filetype') • shortname: Shortened name of the option (like 'ft') • type: type of option ("string", "number" or "boolean") • default: The default value for the option • was_set: Whether the option was set. • last_set_sid: Last set script id (if any) • last_set_linenr: line number where option was set • last_set_chan: Channel where option was set (0 for local) • scope: one of "global", "win", or "buf" • global_local: whether win or buf option has a global value • commalist: List of comma separated values • flaglist: List of single char flags Parameters: ~ {name} Option name Return: ~ Option Information

Parameters

denops: Denops
name: unknown

Returns

Promise<unknown>