Skip to content

Commit c90ab1b

Browse files
authored
Merge pull request #240 from vim-denops/imp-popup
👍 Add `popup.config` to configure existing popup window
2 parents d5d2b1e + 00b5bb5 commit c90ab1b

File tree

9 files changed

+469
-82
lines changed

9 files changed

+469
-82
lines changed

function/nvim/_generated.ts

Lines changed: 0 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

function/nvim/_manual.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export * from "./nvim_open_win.ts";
22
export * from "./nvim_win_get_config.ts";
3+
export * from "./nvim_win_set_config.ts";

function/nvim/nvim_win_set_config.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import type { Denops } from "https://deno.land/x/denops_core@v6.0.5/mod.ts";
2+
3+
import type { NvimOpenWinConfig } from "./nvim_open_win.ts";
4+
5+
/**
6+
* Configures window layout. Currently only for floating and external windows
7+
* (including changing a split window to those layouts).
8+
*
9+
* When reconfiguring a floating window, absent option keys will not be
10+
* changed. `row`/`col` and `relative` must be reconfigured together.
11+
*
12+
* Parameters:
13+
* - **{window}** Window handle, or 0 for current window
14+
* - **{config}** Map defining the window configuration, see `nvim_open_win()`
15+
*
16+
* See also:
17+
* - `nvim_open_win()`
18+
*/
19+
export function nvim_win_set_config(
20+
denops: Denops,
21+
window: number,
22+
config: Partial<NvimOpenWinConfig>,
23+
): Promise<void>;
24+
export function nvim_win_set_config(
25+
denops: Denops,
26+
...args: unknown[]
27+
): Promise<unknown> {
28+
return denops.call("nvim_win_set_config", ...args);
29+
}

function/vim/_generated.ts

Lines changed: 0 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

function/vim/_manual.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
export * from "./prop_add_list.ts";
21
export * from "./popup_create.ts";
2+
export * from "./popup_setoptions.ts";
3+
export * from "./prop_add_list.ts";

0 commit comments

Comments
 (0)