Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/function/vim/mod.ts>term_setapi

📚 Standard module for denops.vim
Go to Latest
function term_setapi
import { term_setapi } from "https://deno.land/x/denops_std@v3.8.1/function/vim/mod.ts";

Set the function name prefix to be used for the |terminal-api| function in terminal {buf}. For example: :call term_setapi(buf, "Myapi_") :call term_setapi(buf, "") The default is "Tapi_". When {expr} is an empty string then no |terminal-api| function can be used for {buf}. When used as a method the base is used for {buf}: GetBufnr()->term_setapi({expr})

Parameters

denops: Denops
buf: unknown
expr: unknown

Returns

Promise<unknown>