mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 20:30:05 +08:00
Finish star_rc
This commit is contained in:
parent
985fa6e7f8
commit
3093eb866d
@ -47,6 +47,18 @@ function! s:stargazers_ac() abort
|
||||
let user = github#api#activity#List_stargazers('SpaceVim','SpaceVim')[0]
|
||||
call add(line, 'First stargazers | [' . user.login . '](https://github.com/' . user.login . ')')
|
||||
else
|
||||
let index = id % 30
|
||||
if index == 0
|
||||
let page = id/30
|
||||
let index = 30
|
||||
else
|
||||
let page = id/30 + 1
|
||||
endif
|
||||
let users = github#api#activity#List_stargazers('SpaceVim','SpaceVim', page)
|
||||
if type(users) == type([]) && len(users) >= index
|
||||
let user = users[index - 1]
|
||||
call add(line, id . 'th stargazers | [' . user.login . '](https://github.com/' . user.login . ')')
|
||||
endif
|
||||
endif
|
||||
endfor
|
||||
if line[-1] != ''
|
||||
|
@ -1162,7 +1162,11 @@ Achievements | Account
|
||||
|
||||
Achievements | Account
|
||||
----- | -----
|
||||
First stargazers | [monkeydterry](https://github.com/)monkeydterry
|
||||
First stargazers | [monkeydterry](https://github.com/monkeydterry)
|
||||
100th stargazers | [naraj](https://github.com/naraj)
|
||||
1000th stargazers | [icecity96](https://github.com/icecity96)
|
||||
2000th stargazers | [frowhy](https://github.com/frowhy)
|
||||
3000th stargazers | [purkylin](https://github.com/purkylin)
|
||||
|
||||
<!-- SpaceVim Achievements end -->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user