Skip to main content
Module

x/ddc_vim/deps.ts>fn.prompt_setinterrupt

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

Set a callback for buffer {buf} to {expr}. When {expr} is an empty string the callback is removed. This has only effect if {buf} has 'buftype' set to "prompt". This callback will be invoked when pressing CTRL-C in Insert mode. Without setting a callback Vim will exit Insert mode, as in any buffer. Can also be used as a |method|: GetBuffer()->prompt_setinterrupt(callback)

Parameters

denops: Denops
buf: unknown
expr: unknown

Returns

Promise<unknown>