Skip to main content
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.4.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>