fix: more lsp info comment and fix backend opts error

This commit is contained in:
JuanZoran
2023-03-14 22:30:25 +08:00
parent dab105b27f
commit f47abd1691
15 changed files with 102 additions and 50 deletions

View File

@@ -1,7 +1,6 @@
local node = require('Trans').util.node
local it, t, f = node.item, node.text, node.format
local function conjunction(text)
return {
it('', 'TransTitleRound'),
@@ -116,6 +115,11 @@ local strategy = {
end,
}
---@class TransHover
---@field load fun(hover: TransHover, result: TransResult, field: string)
return function(hover, result, field)
strategy[field](hover, result[field])
end