style: modify title style

This commit is contained in:
JuanZoran 2023-01-16 00:27:12 +08:00
parent 51313663b5
commit 2c57923f6a
3 changed files with 10 additions and 4 deletions

@ -57,9 +57,11 @@ end
local function expl(c, text)
local wrapper = c:text_wrapper()
wrapper('', 'TransTitleRound')
-- wrapper('', 'TransTitleRound')
wrapper('', 'TransTitleRound')
wrapper(text, 'TransTitle')
wrapper('', 'TransTitleRound')
-- wrapper('', 'TransTitleRound')
wrapper('', 'TransTitleRound')
end
local indent = ' '

@ -27,6 +27,7 @@ local function get_word(method)
if method == 'n' then
return vim.fn.expand('<cword>')
elseif method == 'v' then
vim.api.nvim_input('<ESC>')
return get_select()
elseif method == 'input' then
-- TODO Use Telescope with fuzzy finder

@ -26,7 +26,9 @@ function M.init(view)
border = conf.window.border,
title = {
{ '', 'TransTitleRound' },
-- { '', 'TransTitleRound' },
{ conf.icon.title .. ' Trans', 'TransTitle' },
-- { '', 'TransTitleRound' },
{ '', 'TransTitleRound' },
},
title_pos = 'center',
@ -122,17 +124,18 @@ M.close = function()
-- Wait animation done
vim.defer_fn(function ()
api.nvim_win_close(M.id, true)
end, 10)
end, 15)
end
end
vim.defer_fn(narrow, 10)
narrow()
else
api.nvim_win_close(M.id, true)
end
end
end
M.show = function()
M.init(M.view or 'float')
M.load_opts()