-
Notifications
You must be signed in to change notification settings - Fork 81
/
video_script.lua
57 lines (57 loc) · 1.42 KB
/
video_script.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
local colors = {
'base16-3024',
'base16-apathy',
'base16-apprentice',
'base16-ashes',
'base16-atelier-cave',
'base16-atelier-dune',
'base16-atelier-estuary',
'base16-atelier-forest',
'base16-atelier-heath',
'base16-atelier-lakeside',
'base16-atelier-plateau',
'base16-atelier-savanna',
'base16-atelier-seaside',
'base16-atelier-sulphurpool',
'base16-danqing',
'base16-darcula',
'base16-darkmoss',
'base16-darkviolet',
'base16-default-dark',
'base16-dracula',
'base16-eighties',
'base16-espresso',
'base16-gruvbox-dark-hard',
'base16-gruvbox-dark-medium',
'base16-gruvbox-dark-pale',
'base16-gruvbox-dark-soft',
'base16-materia',
'base16-material',
'base16-mocha',
'base16-monokai',
'base16-rose-pine-moon',
'base16-sandcastle',
'base16-solarized-dark',
'base16-spaceduck',
'base16-spacemacs',
'base16-tokyo-night-dark',
'base16-tokyodark',
'base16-tomorrow-night-eighties',
}
local i = 1
local timer = vim.loop.new_timer()
timer:start(0, 300, vim.schedule_wrap(function()
vim.cmd('colorscheme ' .. colors[i])
i = i + 1
if i > #colors then
timer:close()
end
end))
local augroup = 'lua_sandbox'
vim.api.nvim_create_augroup(augroup, { clear = true })
vim.api.nvim_create_autocmd({ 'VimLeave' }, {
group = augroup,
callback = function()
timer:close()
end,
})