Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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.11.3/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>