Trans.nvim/lua/Trans/init.lua
2023-03-09 19:52:22 +08:00

12 lines
254 B
Lua

local M = setmetatable({}, {
__index = function(tbl, key)
local status, field = pcall(require, 'Trans.core.' .. key)
assert(status, 'Unknown field: ' .. key)
tbl[key] = field
return field
end
})
return M