import { config } from "https://deno.land/x/denops_std@v6.5.0/popup/mod.ts";
Config a popup window in Vim/Neovim compatible way.
import type { Entrypoint } from "https://deno.land/x/denops_std@v6.5.0/mod.ts";
import * as popup from "https://deno.land/x/denops_std@v6.5.0/popup/mod.ts";
export const main: Entrypoint = async (denops) => {
// Open a popup window
await using popupWindow = await popup.open(denops, {
relative: "editor",
width: 20,
height: 20,
row: 1,
col: 1,
});
// Config a popup window
await popup.config(denops, popupWindow.winid, {
title: "Hello, world!",
});
}
Note that this function does NOT work in batch.collect()
.