Skip to main content
Module

x/ddc_vim/deps.ts>fn.timer_info

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

Return a list with information about timers. When {id} is given only information about this timer is returned. When timer {id} does not exist an empty list is returned. When {id} is omitted information about all timers is returned. For each timer the information is stored in a |Dictionary| with these items: "id" the timer ID "time" time the timer was started with "remaining" time until the timer fires "repeat" number of times the timer will still fire; -1 means forever "callback" the callback "paused" 1 if the timer is paused, 0 otherwise Can also be used as a |method|: GetTimer()->timer_info() {only available when compiled with the |+timers| feature}

Parameters

denops: Denops
optional
id: unknown

Returns

Promise<unknown>