Skip to main content
Module

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

📚 Standard module for denops.vim
Latest
function nvim_buf_detach
import { nvim_buf_detach } from "https://deno.land/x/denops_std@v6.5.0/function/nvim/mod.ts";

Deactivates buffer-update events on the channel.

Attributes: RPC only

Parameters:

  • {buffer} Buffer handle, or 0 for current buffer

Return: False if detach failed (because the buffer isn't loaded); otherwise True.

See also:

  • nvim_buf_attach()
  • api-lua-detach for detaching Lua callbacks

Parameters

denops: Denops
buffer: unknown

Returns

Promise<unknown>