Skip to main content
Module

x/ddc_vim/deps.ts>fn.bufload

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

Ensure the buffer {expr} is loaded. When the buffer name refers to an existing file then the file is read. Otherwise the buffer will be empty. If the buffer was already loaded then there is no change. If there is an existing swap file for the file of the buffer, there will be no dialog, the buffer will be loaded anyway. The {expr} argument is used like with |bufexists()|.

Parameters

denops: Denops
expr: string | number

Returns

Promise<void>