From 110e49cf1ad2cbbddb77b653368935cfd5070670 Mon Sep 17 00:00:00 2001 From: JuanZoran <1430359574@qq.com> Date: Thu, 26 Jan 2023 22:40:23 +0800 Subject: [PATCH] fix: fix title confilict --- lua/Trans/init.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lua/Trans/init.lua b/lua/Trans/init.lua index 9ebf9db..661c684 100644 --- a/lua/Trans/init.lua +++ b/lua/Trans/init.lua @@ -1,5 +1,12 @@ local M = {} + +local title = vim.fn.has('nvim-0.9') and{ + { '', 'TransTitleRound' }, + { ' Trans', 'TransTitle' }, + { '', 'TransTitleRound' }, + } or ' Trans' + M.conf = { view = { i = 'float', @@ -10,11 +17,7 @@ M.conf = { width = 37, height = 27, border = 'rounded', - title = { - { '', 'TransTitleRound' }, - { ' Trans', 'TransTitle' }, - { '', 'TransTitleRound' }, - }, + title = title, keymap = { -- TODO : pageup = '[[',