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

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

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

Show the {what} for 3 seconds at the top of the Vim window. This works like:

call popup_create({what}, #{
        \ line: 1,
        \ col: 10,
        \ minwidth: 20,
        \ time: 3000,
        \ tabpage: -1,
        \ zindex: 300,
        \ drag: 1,
        \ highlight: 'WarningMsg',
        \ border: [],
        \ close: 'click',
        \ padding: [0,1,0,1],
        \ })

The PopupNotification highlight group is used instead of WarningMsg if it is defined.

Without the +timers feature the popup will not disappear automatically, the user has to click in it.

The position will be adjusted to avoid overlap with other notifications. Use {options} to change the properties.

Can also be used as a method:

GetText()->popup_notification({})

Parameters

denops: Denops
what: unknown
options: unknown

Returns

Promise<number>