Skip to main content
Module

x/ddc_vim/deps.ts>fn.win_gettype

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.win_gettype
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { win_gettype } = fn;

Return the type of the window: "autocmd" autocommand window. Temporary window used to execute autocommands. "popup" popup window |popup| "preview" preview window |preview-window| "command" command-line window |cmdwin| (empty) normal window "unknown" window {nr} not found When {nr} is omitted return the type of the current window. When {nr} is given return the type of this window by number or |window-ID|. Also see the 'buftype' option. When running a terminal in a popup window then 'buftype' is "terminal" and win_gettype() returns "popup".

Parameters

denops: Denops
optional
nr: unknown

Returns

Promise<unknown>