121 lines
2.5 KiB
Lua
121 lines
2.5 KiB
Lua
local M = {}
|
|
|
|
M.conf = {
|
|
style = {
|
|
ui = {
|
|
input = 'float',
|
|
normal = 'cursor',
|
|
select = 'cursor'
|
|
},
|
|
window = {
|
|
cursor = {
|
|
border = 'rounded',
|
|
width = 30,
|
|
height = 30,
|
|
},
|
|
float = {
|
|
border = 'rounded',
|
|
width = 0.9,
|
|
height = 0.8,
|
|
},
|
|
-- NOTE :如果你想限制某个组件的行数,可以设置 (名称与order相同)
|
|
-- Example:
|
|
-- limit = {
|
|
-- En = 1, -- 只显示第一行,(一般为最广泛的释义)
|
|
-- },
|
|
limit = nil,
|
|
},
|
|
},
|
|
order = {
|
|
offline = {
|
|
'Title',
|
|
'Tag',
|
|
'Pos',
|
|
'Exchange',
|
|
'Translation',
|
|
'Definition',
|
|
},
|
|
-- online = {
|
|
-- -- TODO
|
|
-- },
|
|
},
|
|
ui = {
|
|
highlight = {
|
|
TransWord = {
|
|
fg = '#7ee787',
|
|
bold = true,
|
|
},
|
|
TransPhonetic = {
|
|
fg = '#8b949e',
|
|
},
|
|
TransRef = {
|
|
fg = '#75beff',
|
|
bold = true,
|
|
},
|
|
TransTag = {
|
|
fg = '#e5c07b',
|
|
},
|
|
TransExchange = {
|
|
link = 'TransTag',
|
|
},
|
|
TransPos = {
|
|
link = 'TransTag',
|
|
},
|
|
TransZh = {
|
|
link = 'TransWord',
|
|
},
|
|
TransEn = {
|
|
fg = '#bc8cff',
|
|
},
|
|
},
|
|
icon = {
|
|
star = '⭐',
|
|
isOxford = '✔',
|
|
notOxford = ''
|
|
},
|
|
display = {
|
|
phnoetic = true,
|
|
collins_star = true,
|
|
oxford = true,
|
|
-- TODO
|
|
-- history = false,
|
|
},
|
|
},
|
|
base = {
|
|
db_path = '$HOME/.vim/dict/ultimate.db',
|
|
auto_close = true,
|
|
debug = {
|
|
enable = true,
|
|
type_check = true,
|
|
unknown_conf = true,
|
|
},
|
|
engine = {
|
|
-- TODO
|
|
'local',
|
|
}
|
|
},
|
|
-- map = {
|
|
-- -- TODO
|
|
-- },
|
|
-- history = {
|
|
-- -- TOOD
|
|
-- }
|
|
|
|
-- TODO add online translate engine
|
|
-- online_search = {
|
|
-- enable = false,
|
|
-- engine = {},
|
|
-- }
|
|
|
|
-- TODO register word
|
|
}
|
|
|
|
-- INFO :加载的规则 [LuaRule]
|
|
M.replace_rules = {
|
|
'order.*',
|
|
'ui.highlight.*',
|
|
}
|
|
|
|
|
|
return M
|