mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 03:00:04 +08:00
feat(messletters): add messletters functions
- index_num - parenthesized_num - num_period
This commit is contained in:
parent
ecbf624113
commit
46f53be2f8
@ -61,5 +61,28 @@ function M.circled_num(num, t)
|
||||
end
|
||||
end
|
||||
|
||||
function M.index_num(num)
|
||||
local nums = {8304, 185, 178, 179, 8308, 8309, 8310, 8311, 8312, 8313}
|
||||
if vim.fn.index(vim.fn.range(1, 10), num) ~= -1 then
|
||||
return vim.fn.nr2char(nums[num + 1])
|
||||
end
|
||||
return ''
|
||||
end
|
||||
|
||||
function M.parenthesized_num(num)
|
||||
if vim.fn.index(vim.fn.range(1, 20), num) ~= -1 then
|
||||
return vim.fn.nr2char(9331 + num)
|
||||
else
|
||||
return ''
|
||||
end
|
||||
end
|
||||
|
||||
function M.num_period(num)
|
||||
if vim.fn.index(vim.fn.range(1, 20), num) ~= -1 then
|
||||
return vim.fn.nr2char(9351 + num)
|
||||
else
|
||||
return ''
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
Loading…
Reference in New Issue
Block a user