feat: more icon support

This commit is contained in:
JuanZoran
2023-03-17 09:26:55 +08:00
parent 1367537926
commit aabe1f3a8f
4 changed files with 18 additions and 12 deletions

View File

@ -28,7 +28,7 @@ local default = {
if not translation then return end
local buffer = hover.buffer
buffer:setline(conjunction('中文翻译'))
buffer:setline(conjunction(hover.opts.icon.translation .. ' 中文翻译'))
for _, value in ipairs(translation) do
buffer:setline(
@ -43,7 +43,7 @@ local default = {
if not definition then return end
local buffer = hover.buffer
buffer:setline(conjunction('英文注释'))
buffer:setline(conjunction(hover.opts.icon.definition .. ' 英文注释'))
for _, value in ipairs(definition) do
buffer:setline(