mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:40:05 +08:00
30 lines
705 B
Markdown
30 lines
705 B
Markdown
---
|
|
title: "unicode#spinners api"
|
|
description: "unicode#spinners API provides some basic functions for starting spinners timer"
|
|
---
|
|
|
|
# [Available APIs](../../) >> unicode#spinners
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
- [Intro](#intro)
|
|
- [Functions](#functions)
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
## Intro
|
|
|
|
unicode#spinners API provides some basic functions for starting spinners timer
|
|
|
|
```vim
|
|
let s:SPI = SpaceVim#api#import('unicode#spinners')
|
|
call s:SPI.apply('dot1', 'g:dotstr')
|
|
set statusline+=%{g:dotstr}
|
|
```
|
|
|
|
## Functions
|
|
|
|
| function name | description |
|
|
| ------------------------ | ------------------------------ |
|
|
| `apply(name, time, var)` | start a job, return the job id |
|