Skip to main content
Module

x/ddc_vim/deps.ts>fn.tabpagebuflist

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.tabpagebuflist
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { tabpagebuflist } = fn;

The result is a |List|, where each item is the number of the buffer associated with each window in the current tab page. {arg} specifies the number of the tab page to be used. When omitted the current tab page is used. When {arg} is invalid the number zero is returned. To get a list of all buffers in all tabs use this: let buflist = [] for i in range(tabpagenr('$')) call extend(buflist, tabpagebuflist(i + 1)) endfor Note that a buffer may appear in more than one window. Can also be used as a |method|: GetTabpage()->tabpagebuflist()

Parameters

denops: Denops
optional
arg: unknown

Returns

Promise<unknown>