Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.win_getid

Dark deno-powered completion framework for neovim/Vim
Very Popular
Go to Latest
function fn.win_getid
import { fn } from "https://deno.land/x/ddc_vim@v4.0.0/deps.ts";
const { win_getid } = fn;

Get the window-ID for the specified window. When {win} is missing use the current window. With {win} this is the window number. The top window has number 1. Without {tab} use the current tab, otherwise the tab with number {tab}. The first tab has number one. Return zero if the window cannot be found.

Can also be used as a method:

GetWinnr()->win_getid()

Parameters

denops: Denops
optional
win: unknown
optional
tab: unknown

Returns

Promise<number>