Trans.nvim/lua/Trans/init.lua

23 lines
477 B
Lua
Raw Normal View History

2022-12-17 20:51:22 +08:00
local M = {}
2022-12-17 16:07:27 +08:00
2022-12-17 20:51:22 +08:00
-- NOTE:
-- Style:
-- [minimal]: one line with '/'
-- [default]:
-- [full]: show all description in different lines
-- TODO: other style
M.conf = require("Trans.conf")
function M.setup(conf)
M.conf = vim.tbl_extend('force', M.conf, conf)
require("Trans.setup")
end
2022-12-17 20:51:22 +08:00
M.db = require("sqlite.db")
M.dict = M.db:open(M.conf.db_path)
M.query = require("Trans.display").query
M.query_cursor = require("Trans.display").query_cursor
2022-12-17 16:07:27 +08:00
return M