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

x/ddc_vim/deps.ts>fn.gettabvar

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.gettabvar
import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/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>