feat: change cmp window border

This commit is contained in:
JuanZoran
2023-01-25 11:04:18 +08:00
parent 8fde14e267
commit 934231183d
6 changed files with 123 additions and 79 deletions

View File

@@ -56,11 +56,9 @@ local action = {
}
local handle = {
title = function()
-- TODO :
end,
}
local function process()
end
return function(word)
-- TODO :online query
@@ -89,9 +87,7 @@ return function(word)
if m_result then
set_tag_hl(engine_us, 'success')
for _, proc in pairs(handle) do
proc()
end
process()
else
set_tag_hl(engine_us, 'fail')
end

View File

@@ -10,7 +10,6 @@ local item
local m_indent = ' '
local title = function(str)
m_content:addline(
text(
@@ -313,6 +312,7 @@ return function(word)
m_window:set('wrap', true)
end)
-- Auto Close
cmd_id = api.nvim_create_autocmd(
hover.auto_close_events, {