chore: use conf.theme instead of conf.style.theme
This commit is contained in:
@@ -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)
|
||||
|
@@ -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'))
|
||||
|
Reference in New Issue
Block a user