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

x/ddc_vim/deps.ts>fn.BufInfo

Dark deno-powered completion framework for neovim/Vim
Go to Latest
interface fn.BufInfo
Re-export
import { type fn } from "https://deno.land/x/ddc_vim@v4.1.0/deps.ts";
const { BufInfo } = fn;

Type of getbufinfo() result.

Properties

bufnr: number

Buffer number.

changed: boolean

TRUE if the buffer is modified.

changedtick: number

Number of changes made to the buffer.

hidden: boolean

TRUE if the buffer is hidden.

lastused: number

Timestamp in seconds, like localtime(), when the buffer was last used.

listed: boolean

TRUE if the buffer is listed.

lnum: number

Line number used for the buffer when opened in the current window. Only valid if the buffer has been displayed in the window in the past. If you want the line number of the last known cursor position in a given window, use line():

:echo line('.', {winid})
linecount: number

Number of lines in the buffer. (only valid when loaded)

loaded: boolean

TRUE if the buffer is loaded.

name: string

Full path to the file in the buffer.

optional
signs: PlacedSign[]

List of signs placed in the buffer.

variables: number

A reference to the dictionary with buffer-local variables.

windows: number[]

List of window-IDs that display this buffer.

popups: number[]

List of popup window-IDs that display this buffer.