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

x/ddc_vim/deps.ts>fn.bufload

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

Ensure the buffer {buf} 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 the buffer is not related to a file the no file is read (e.g., when 'buftype' is "nofile"). 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 {buf} argument is used like with bufexists().

Can also be used as a method:

eval 'somename'->bufload()

Returns

Promise<void>