import { Neovim } from "neovim" ; export class BufferRepository { constructor ( protected readonly vim ) { } public async verticalOpen ( id ) { await this . vim . command ( "rightbelow split #" + id ) ; } public async horizontalOpen ( id ) { await this . vim . command ( "rightbelow vsplit #" + id ) ; } public async tabOpen ( id ) { await this . vim . command ( "tabedit #" + id ) ; } public async open ( id ) { await this . vim . command ( "buffer " + id ) ; } public async delete ( id ) { await this . vim . command ( "bwipeout " + id ) ; } public async getBufferIdsOnCurrentTab ( ) { return await this . vim . call ( "tabpagebuflist" ) ; } }