Skip to main content
Module

x/ddc_vim/deps.ts>fn.getwininfo

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

Returns information about windows as a |List| with Dictionaries. If {winid} is given Information about the window with that ID is returned, as a |List| with one item. If the window does not exist the result is an empty list. Without {winid} information about all the windows in all the tab pages is returned. Each List item is a |Dictionary| with the following entries: botline last complete displayed buffer line bufnr number of buffer in the window height window height (excluding winbar) loclist 1 if showing a location list {only with the +quickfix feature} quickfix 1 if quickfix or location list window {only with the +quickfix feature} terminal 1 if a terminal window {only with the +terminal feature} tabnr tab page number topline first displayed buffer line variables a reference to the dictionary with window-local variables width window width winbar 1 if the window has a toolbar, 0 otherwise wincol leftmost screen column of the window; "col" from |win_screenpos()| winid |window-ID| winnr window number winrow topmost screen line of the window; "row" from |win_screenpos()| Can also be used as a |method|: GetWinnr()->getwininfo()

Parameters

denops: Denops
optional
winid: unknown

Returns

Promise<unknown>