Skip to main content
Module

x/ddc_vim/deps.ts>fn.win_screenpos

Dark deno-powered completion framework for neovim/Vim
Latest
function fn.win_screenpos
import { fn } from "https://deno.land/x/ddc_vim@v4.3.1/deps.ts";
const { win_screenpos } = fn;

Return the screen position of window {nr} as a list with two numbers: [row, col]. The first window always has position [1, 1], unless there is a tabline, then it is [2, 1]. {nr} can be the window number or the window-ID. Use zero for the current window. Returns [0, 0] if the window cannot be found in the current tabpage.

Can also be used as a method:

GetWinid()->win_screenpos()

Parameters

denops: Denops
nr: unknown

Returns

Promise<unknown[]>