Skip to main content
Module

x/denops_std/function/vim/mod.ts>popup_beval

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

Show the {what} above the position from 'ballooneval' and close it when the mouse moves. This works like:

let pos = screenpos(v:beval_winnr, v:beval_lnum, v:beval_col)
call popup_create({what}, #{
      \ pos: 'botleft',
      \ line: pos.row - 1,
      \ col: pos.col,
      \ mousemoved: 'WORD',
      \ })

Use {options} to change the properties. See popup_beval_example for an example.

Can also be used as a method:

GetText()->popup_beval({})

Parameters

denops: Denops
what: unknown
options: unknown

Returns

Promise<number>