Skip to main content
Module

x/denops_std/function/mod.ts>prompt_setprompt

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

Set prompt for buffer {buf} to {text}. You most likely want {text} to end in a space. The result is only visible if {buf} has 'buftype' set to "prompt". Example:

call prompt_setprompt(bufnr(), 'command: ')

Can also be used as a method:

GetBuffer()->prompt_setprompt('command: ')

only available when compiled with the +channel feature

Parameters

denops: Denops
buf: unknown
text: unknown

Returns

Promise<void>