style: tidy up configuration and remove unnecessary comments

This commit is contained in:
2024-10-21 05:48:19 -04:00
parent b22d371263
commit 7ea66629e9
6 changed files with 74 additions and 4 deletions
+11 -2
View File
@@ -7,13 +7,22 @@ local M = {}
local wezterm = WEZTERM
local types = require("types")
-- Set the leader icon
wezterm.on("update-status", function(window, _)
-- Update status event
wezterm.on("update-status", function(window, pane)
-- Set the leader icon
if window:leader_is_active() then
types.leader.icon = types.leader.on
else
types.leader.icon = types.leader.off
end
-- Set the TERM
local tty = pane:get_tty_name()
if tty then
CONFIG.term = "wezterm"
else
CONFIG.term = "xterm-256color"
end
end)
---@function Function to render the leader icon