1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

feat(messletters): add bubble_num function

This commit is contained in:
wsdjeg 2022-10-01 21:16:22 +08:00
parent 4e7573096c
commit ba50d3af24

View File

@ -0,0 +1,30 @@
--=============================================================================
-- messletters.lua --- messletters api
-- Copyright (c) 2016-2019 Wang Shidong & Contributors
-- Author: Wang Shidong < wsdjeg@outlook.com >
-- URL: https://spacevim.org
-- License: GPLv3
--=============================================================================
local M = {}
function M.bubble_num(num, t)
local list = {}
table.insert(list, {'', '', '', '', '', '', '', '', '', ''})
table.insert(list, {'', '', '', '', '', '', '', '', '', ''})
table.insert(list, {'', '', '', '', '', '', '', '', '', ''})
local n = ''
pcall(function ()
n = list[t + 1][num]
end)
return n
end
return M