chore: use conf.theme instead of conf.style.theme

This commit is contained in:
JuanZoran
2023-03-15 19:27:21 +08:00
parent 52238cb1e7
commit 21351b3a26
6 changed files with 92 additions and 91 deletions

View File

@@ -12,6 +12,7 @@ local strategy = {
pin = function(hover)
if hover.pin then return end
hover.pin = true
local window = hover.window
local width, height = window:width(), window:height()
local col = vim.o.columns - width - 3
@@ -25,7 +26,6 @@ local strategy = {
})
window:set('wrap', true)
hover.pin = true
end,
close = function(hover)

View File

@@ -124,7 +124,6 @@ function M:wait(tbl, name, timeout)
pause(interval)
end
-- FIXME :
-- buffer:wipe()
-- vim.api.nvim_buf_set_lines(buffer.bufnr, 1, -1, true, {})
@@ -139,6 +138,7 @@ end
---@param result TransResult
---@overload fun(result:TransResult)
function M:process(data, result)
if self.pin then return end
-- local node = Trans.util.node
-- local it, t, f = node.item, node.text, node.format
-- self.buffer:setline(it('hello', 'MoreMsg'))