Skip to main content
Module

x/ddc_vim/deps.ts>fn.prompt_setprompt

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.prompt_setprompt
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { prompt_setprompt } = fn;

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: ')

Parameters

denops: Denops
buf: unknown
text: unknown

Returns

Promise<unknown>