First commit
This commit is contained in:
commit
847c9e64c0
51 changed files with 4058 additions and 0 deletions
24
.config/wezterm/util/init.lua
Normal file
24
.config/wezterm/util/init.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
local wezterm = require("wezterm")
|
||||
|
||||
local M = {}
|
||||
|
||||
M.merge_tables = function(a, b)
|
||||
for k, v in pairs(b) do
|
||||
if a[v] ~= nil then
|
||||
wezterm.log_warn("Duplicate config option detected: ", { old = a[k], new = b[k]})
|
||||
end
|
||||
a[k] = v
|
||||
end
|
||||
end
|
||||
|
||||
M.get_schemes = function()
|
||||
-- Only load color schemes once; store them for later use
|
||||
local schemes = wezterm.GLOBAL.color_schemes
|
||||
if schemes then
|
||||
return schemes
|
||||
end
|
||||
wezterm.GLOBAL.color_schemes = wezterm.get_builtin_color_schemes()
|
||||
return wezterm.GLOBAL.color_schemes
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue