Skip to content

Commit

Permalink
Merge pull request #240 from vim-denops/imp-popup
Browse files Browse the repository at this point in the history
👍 Add `popup.config` to configure existing popup window
  • Loading branch information
lambdalisue committed Mar 13, 2024
2 parents d5d2b1e + 00b5bb5 commit c90ab1b
Show file tree
Hide file tree
Showing 9 changed files with 469 additions and 82 deletions.
26 changes: 0 additions & 26 deletions function/nvim/_generated.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions function/nvim/_manual.ts
@@ -1,2 +1,3 @@
export * from "./nvim_open_win.ts";
export * from "./nvim_win_get_config.ts";
export * from "./nvim_win_set_config.ts";
29 changes: 29 additions & 0 deletions function/nvim/nvim_win_set_config.ts
@@ -0,0 +1,29 @@
import type { Denops } from "https://deno.land/x/denops_core@v6.0.5/mod.ts";

import type { NvimOpenWinConfig } from "./nvim_open_win.ts";

/**
* Configures window layout. Currently only for floating and external windows
* (including changing a split window to those layouts).
*
* When reconfiguring a floating window, absent option keys will not be
* changed. `row`/`col` and `relative` must be reconfigured together.
*
* Parameters:
* - **{window}** Window handle, or 0 for current window
* - **{config}** Map defining the window configuration, see `nvim_open_win()`
*
* See also:
* - `nvim_open_win()`
*/
export function nvim_win_set_config(
denops: Denops,
window: number,
config: Partial<NvimOpenWinConfig>,
): Promise<void>;
export function nvim_win_set_config(
denops: Denops,
...args: unknown[]
): Promise<unknown> {
return denops.call("nvim_win_set_config", ...args);
}
48 changes: 0 additions & 48 deletions function/vim/_generated.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion function/vim/_manual.ts
@@ -1,2 +1,3 @@
export * from "./prop_add_list.ts";
export * from "./popup_create.ts";
export * from "./popup_setoptions.ts";
export * from "./prop_add_list.ts";

0 comments on commit c90ab1b

Please sign in to comment.