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

View File

@@ -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()