22 lines
342 B
Lua
22 lines
342 B
Lua
local M = {}
|
|
|
|
local defaults = {
|
|
runner_modules = {},
|
|
}
|
|
|
|
local current = vim.deepcopy(defaults)
|
|
|
|
function M.set(opts)
|
|
if type(opts) ~= "table" then
|
|
current = vim.deepcopy(defaults)
|
|
return
|
|
end
|
|
current = vim.tbl_deep_extend("force", vim.deepcopy(defaults), opts)
|
|
end
|
|
|
|
function M.get()
|
|
return current or defaults
|
|
end
|
|
|
|
return M
|