Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/nvim/mod.ts>nvim_buf_is_loaded

๐Ÿ“š Standard module for denops.vim
Go to Latest
function nvim_buf_is_loaded
import { nvim_buf_is_loaded } from "https://deno.land/x/denops_std@v3.9.0/function/nvim/mod.ts";

Checks if a buffer is valid and loaded. See |api-buffer| for more info about unloaded buffers. Parameters: ~ {buffer} Buffer handle, or 0 for current buffer Return: ~ true if the buffer is valid and loaded, false otherwise.

Parameters

denops: Denops
buffer: unknown

Returns

Promise<unknown>