Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

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

๐Ÿ“š Standard module for denops.vim
Go to Latest
function popup_atcursor
import { popup_atcursor } from "https://deno.land/x/denops_std@v6.3.0/function/vim/mod.ts";

Show the {what} above the cursor, and close it when the cursor moves. This works like:

call popup_create({what}, #{
        \ pos: 'botleft',
        \ line: 'cursor-1',
        \ col: 'cursor',
        \ moved: 'WORD',
        \ })

Use {options} to change the properties. If "pos" is passed as "topleft" then the default for "line" becomes "cursor+1".

Can also be used as a method:

GetText()->popup_atcursor({})

Parameters

denops: Denops
what: unknown
options: unknown

Returns

Promise<number>