style: formatting

This commit is contained in:
2024-12-24 09:45:02 -05:00
parent 065eb62359
commit 37d1d5fff0
+43 -43
View File
@@ -1,55 +1,55 @@
local wezterm = require("wezterm") local wezterm = require('wezterm')
local config = wezterm.config_builder() local config = wezterm.config_builder()
local mux = wezterm.mux local mux = wezterm.mux
wezterm.on("gui-startup", function() wezterm.on('gui-startup', function()
local tab, pane, window = mux.spawn_window({}) local tab, pane, window = mux.spawn_window({})
window:gui_window():maximize() window:gui_window():maximize()
end) end)
-- required to allow nvim zen-mode to change the font size -- required to allow nvim zen-mode to change the font size
wezterm.on("user-var-changed", function(window, pane, name, value) wezterm.on('user-var-changed', function(window, pane, name, value)
local overrides = window:get_config_overrides() or {} local overrides = window:get_config_overrides() or {}
if name == "ZEN_MODE" then if name == 'ZEN_MODE' then
local incremental = value:find("+") local incremental = value:find('+')
local number_value = tonumber(value) local number_value = tonumber(value)
if incremental ~= nil then if incremental ~= nil then
while number_value > 0 do while number_value > 0 do
window:perform_action(wezterm.action.IncreaseFontSize, pane) window:perform_action(wezterm.action.IncreaseFontSize, pane)
number_value = number_value - 1 number_value = number_value - 1
end end
elseif number_value < 0 then elseif number_value < 0 then
window:perform_action(wezterm.action.ResetFontSize, pane) window:perform_action(wezterm.action.ResetFontSize, pane)
overrides.font_size = nil overrides.font_size = nil
else else
overrides.font_size = number_value overrides.font_size = number_value
end end
end end
window:set_config_overrides(overrides) window:set_config_overrides(overrides)
end) end)
config = { config = {
window_close_confirmation = "NeverPrompt", window_close_confirmation = 'NeverPrompt',
term = "xterm-256color", term = 'xterm-256color',
enable_kitty_graphics = true, enable_kitty_graphics = true,
max_fps = 60, max_fps = 60,
color_scheme = "nord", color_scheme = 'nord',
window_decorations = "RESIZE", window_decorations = 'RESIZE',
enable_tab_bar = false, enable_tab_bar = false,
default_cursor_style = "SteadyBlock", default_cursor_style = 'SteadyBlock',
cursor_blink_ease_out = "Constant", cursor_blink_ease_out = 'Constant',
cursor_blink_ease_in = "Constant", cursor_blink_ease_in = 'Constant',
cursor_blink_rate = 0, cursor_blink_rate = 0,
font = wezterm.font("JetBrainsMono Nerd Font"), font = wezterm.font('JetBrainsMono Nerd Font'),
font_size = 14, font_size = 14,
window_background_opacity = 0.85, window_background_opacity = 0.85,
macos_window_background_blur = 9, macos_window_background_blur = 9,
window_padding = { window_padding = {
left = 2, left = 2,
right = 2, right = 2,
top = 7, top = 7,
bottom = 0, bottom = 0,
}, },
} }
return config return config