1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:40:06 +08:00
SpaceVim/lua/spacevim/api/messletters.lua

31 lines
809 B
Lua
Raw Normal View History

--=============================================================================
-- 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