Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ddc_vim/deps.ts>fn.buflisted

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

The result is a Number, which is TRUE if a buffer called {buf} exists and is listed (has the 'buflisted' option set). The {buf} argument is used like with bufexists().

Can also be used as a method:

let listed = 'somename'->buflisted()

Returns

Promise<boolean>