import { Neovim } from "neovim" ; export class ConfigRepository { constructor ( protected readonly vim ) { } public async getTimeout ( ) { return ( await this . get ( "timeout" ) ) as number ; } public async getPort ( ) { return ( await this . get ( "port" ) ) as number | null ; } public async getExecutableClient ( ) { return ( await this . get ( "executable_client" ) ) as string ; } protected async get ( name ) { return this . vim . call ( "ctrlb#config#get" , name ) ; } }