import { fn } from "https://deno.land/x/ddc_vim@v4.0.5/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