Skip to main content
Deno 2 is finally here 🎉️
Learn more
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@v3.8.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: ')

only available when compiled with the +channel feature

Parameters

denops: Denops
buf: unknown
text: unknown

Returns

Promise<void>