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 = {}
|
|
|
|
|
2022-03-09 19:44:21 +01:00
|
|
|
if t1 ~= nil then
|
|
|
|
for k, v in pairs(t1) do t3[k] = v end
|
|
|
|
end
|
|
|
|
|
|
|
|
if t2 ~= nil then
|
|
|
|
for k, v in pairs(t2) do t3[k] = v end
|
|
|
|
end
|
2022-03-09 19:03:04 +01:00
|
|
|
|
|
|
|
return t3
|
|
|
|
end
|
|
|
|
|
2022-02-09 21:20:34 +01:00
|
|
|
return M
|