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

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

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

Deletes the buffer. See |:bwipeout| Attributes: ~ not allowed when |textlock| is active Parameters: ~ {buffer} Buffer handle, or 0 for current buffer {opts} Optional parameters. Keys: • force: Force deletion and ignore unsaved changes. • unload: Unloaded only, do not delete. See |:bunload|

Parameters

denops: Denops
buffer: unknown
opts: unknown

Returns

Promise<unknown>