feat: Add user customization and refactor for readability

- Add user customization via automatically detected user.lua file
- Reorganize config options into separate files
- Reorganize plugin loaders into separate files
This commit is contained in:
2024-10-04 10:11:16 -04:00
parent c44e4985d2
commit 65917d380a
10 changed files with 286 additions and 167 deletions
+38
View File
@@ -0,0 +1,38 @@
-- ╭─────────────────────────────────────────────────────────╮
-- │ OS OPTIONS │
-- ╰─────────────────────────────────────────────────────────╯
-- Load WezTerm module
local wezterm = WEZTERM
-- Define the opts table
local opts = {}
-- -- Get the OS string
local os_string = wezterm.target_triple:lower()
local myos = ""
--
-- -- Determine the OS
if os_string:find("windows") then
myos = "win"
else
if os_string:find("darwin") then
myos = "mac"
else
myos = "linux"
end
end
-- Set OS-specific options
if myos == "win" then
opts.default_prog = { "pwsh.exe" }
elseif myos == "mac" then
opts.default_prog = { "zsh" }
else
opts.default_prog = { "fish" }
end
MYOS = myos
-- Return the opts table
return opts