Skip to main content
Module

x/ddc_vim/deps.ts>fn.prompt_setprompt

Dark deno-powered completion framework for neovim/Vim
Latest
function fn.prompt_setprompt
import { fn } from "https://deno.land/x/ddc_vim@v4.3.1/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>