Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.win_gettype

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

Return the type of the window: "autocmd" autocommand window. Temporary window used to execute autocommands. "command" command-line window cmdwin (empty) normal window "loclist" location-list-window "popup" popup window popup "preview" preview window preview-window "quickfix" quickfix-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".

Can also be used as a method:

GetWinid()->win_gettype()

Parameters

denops: Denops
optional
nr: unknown

Returns

Promise<string>