Update dotfiles (2026-03-07 22:52:54)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
local M = {}
|
||||
|
||||
function M.setup_all(config, wezterm)
|
||||
local files = wezterm.glob("plugins/*.lua", wezterm.config_dir)
|
||||
table.sort(files)
|
||||
|
||||
for _, relpath in ipairs(files) do
|
||||
local module_name = relpath:gsub("\\", "/"):gsub("%.lua$", ""):gsub("/", ".")
|
||||
|
||||
if module_name ~= "plugins.init" then
|
||||
local ok, mod = pcall(require, module_name)
|
||||
if not ok then
|
||||
wezterm.log_error(("Failed to load %s: %s"):format(module_name, mod))
|
||||
elseif type(mod) == "table" and type(mod.setup) == "function" then
|
||||
mod.setup(config, wezterm)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -0,0 +1,18 @@
|
||||
local M = {}
|
||||
|
||||
function M.setup(config, wezterm)
|
||||
local smart_splits = wezterm.plugin.require("https://github.com/mrjones2014/smart-splits.nvim")
|
||||
|
||||
smart_splits.apply_to_config(config, {
|
||||
direction_keys = { "LeftArrow", "DownArrow", "UpArrow", "RightArrow" },
|
||||
|
||||
modifiers = {
|
||||
move = "META",
|
||||
resize = "SHIFT|META",
|
||||
},
|
||||
|
||||
log_level = "error",
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -0,0 +1,43 @@
|
||||
local M = {}
|
||||
|
||||
function M.setup(config, wezterm)
|
||||
local tabline = wezterm.plugin.require("https://github.com/michaelbrusegard/tabline.wez")
|
||||
tabline.setup({
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = "Tokyo Night",
|
||||
tabs_enabled = true,
|
||||
theme_overrides = {},
|
||||
section_separators = {
|
||||
left = wezterm.nerdfonts.pl_left_hard_divider,
|
||||
right = wezterm.nerdfonts.pl_right_hard_divider,
|
||||
},
|
||||
component_separators = {
|
||||
left = wezterm.nerdfonts.pl_left_soft_divider,
|
||||
right = wezterm.nerdfonts.pl_right_soft_divider,
|
||||
},
|
||||
tab_separators = {
|
||||
left = wezterm.nerdfonts.pl_left_hard_divider,
|
||||
right = wezterm.nerdfonts.pl_right_hard_divider,
|
||||
},
|
||||
},
|
||||
sections = {
|
||||
tabline_a = { "mode" },
|
||||
tabline_b = { "" },
|
||||
tabline_c = { "" },
|
||||
tab_active = {
|
||||
"index",
|
||||
{ "process", padding = 0, icons_only = true },
|
||||
},
|
||||
tab_inactive = { "index", { "process", padding = 0, icons_only = true } },
|
||||
tabline_x = { "ram", "cpu" },
|
||||
tabline_y = { "datetime", "battery" },
|
||||
tabline_z = { "" },
|
||||
},
|
||||
extensions = {},
|
||||
})
|
||||
|
||||
tabline.apply_to_config(config)
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user