2022-02-09 21:20:34 +01:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
function M.global(name, value)
|
|
|
|
vim.g[name] = value
|
|
|
|
end
|
|
|
|
|
2022-03-09 19:03:04 +01:00
|
|
|
function M.mergeTables(t1, t2)
|
|
|
|
local t3 = {}
|
|
|
|
|
|
|
|
for k, v in pairs(t1) do t3[k] = v end
|
|
|
|
for k, v in pairs(t2) do t3[k] = v end
|
|
|
|
|
|
|
|
return t3
|
|
|
|
end
|
|
|
|
|
2022-02-09 21:20:34 +01:00
|
|
|
return M
|