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

x/ddu_vim/deps.ts>fn.pum_getpos

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

If the popup menu (see ins-completion-menu) is not visible, returns an empty Dictionary, otherwise, returns a Dictionary with the following keys: height nr of items visible width screen cells row top screen row (0 first row) col leftmost screen column (0 first col) size total nr of items scrollbar TRUE if scrollbar is visible

The values are the same as in v:event during CompleteChanged.

Returns

Promise<Record<string, unknown>>