import { Neovim } from "neovim" ; export class AutocmdRepository { constructor ( protected readonly vim ) { } public async define ( eventName , pattern , command ) { await this . vim . command ( `autocmd ${ eventName } ${ pattern } ${ command }` ) ; } public async defineToBuffer ( eventName , bufferId , command ) { await this . define ( eventName , `<buffer=${ bufferId }>` , command ) ; } }