Skip to main content
Latest
function fn.gettabvar
import { fn } from "https://deno.land/x/denops_lsputil@v0.9.4/deps.ts";
const { gettabvar } = fn;

Get the value of a tab-local variable {varname} in tab page {tabnr}. t:var Tabs are numbered starting with one. The {varname} argument is a string. When {varname} is empty a dictionary with all tab-local variables is returned. Note that the name without "t:" must be used. When the tab or variable doesn't exist {def} or an empty string is returned, there is no error message.

Can also be used as a method:

GetTabnr()->gettabvar(varname)

Parameters

denops: Denops
tabnr: unknown
varname: unknown
optional
def: unknown

Returns

Promise<unknown>