Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.prompt_getprompt

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.prompt_getprompt
import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { prompt_getprompt } = fn;

Returns the effective prompt text for buffer {buf}. {buf} can be a buffer name or number. See prompt-buffer.

If the buffer doesn't exist or isn't a prompt buffer, an empty string is returned.

Can also be used as a method:

GetBuffer()->prompt_getprompt()

only available when compiled with the +channel feature

Parameters

denops: Denops
buf: unknown

Returns

Promise<string>