Skip to main content
Module

x/denops_std/function/nvim/mod.ts>nvim_ui_pum_set_bounds

📚 Standard module for denops.vim
Go to Latest
function nvim_ui_pum_set_bounds
import { nvim_ui_pum_set_bounds } from "https://deno.land/x/denops_std@v6.4.0/function/nvim/mod.ts";

Tells Nvim the geometry of the popupmenu, to align floating windows with an external popup menu.

Note that this method is not to be confused with nvim_ui_pum_set_height(), which sets the number of visible items in the popup menu, while this function sets the bounding box of the popup menu, including visual elements such as borders and sliders. Floats need not use the same font size, nor be anchored to exact grid corners, so one can set floating-point numbers to the popup menu geometry.

Attributes: RPC only

Parameters:

  • {width} Popupmenu width.
  • {height} Popupmenu height.
  • {row} Popupmenu row.
  • {col} Popupmenu height.

Parameters

denops: Denops
width: unknown
height: unknown
row: unknown
col: unknown

Returns

Promise<unknown>