Trans.nvim/lua/Trans/init.lua
2022-12-21 11:41:21 +08:00

22 lines
435 B
Lua

local M = {}
M.conf = require("Trans.conf")
function M.setup(conf)
if conf.display then
conf.display = vim.tbl_extend('force', M.conf.display, conf.display)
end
if conf.icon then
conf.icon = vim.tbl_extend('force', M.conf.icon, conf.icon)
end
M.conf = vim.tbl_extend('force', M.conf, conf)
require("Trans.setup")
end
M.db = require("sqlite.db")
M.dict = M.db:open(M.conf.db_path)
return M