From 36c40f8e39d1d4e447a28de26ba674102f432848 Mon Sep 17 00:00:00 2001 From: David Ibia Date: Tue, 1 Oct 2024 15:06:43 +0100 Subject: [PATCH] style(wezterm.lua): update window background opacity to 1 for full opacity style(wezterm.lua): adjust background opacity to .95 for better visual appearance refactor(wezterm.lua): extract colorscheme loading logic into a separate function for better readability and maintainability --- .config/wezterm/wezterm.lua | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index 3c4aa02..d8e8650 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -12,7 +12,7 @@ config.default_cursor_style = "BlinkingBlock" config.cursor_blink_rate = 0 config.font = wezterm.font("FiraCode Nerd Font", { weight = 450, stretch = "Normal", style = "Normal" }) config.font_size = 14 -config.window_background_opacity = .9 +config.window_background_opacity = 1 config.background = { { source = { @@ -20,7 +20,7 @@ config.background = { }, width = "100%", height = "100%", - opacity = 0.90, + opacity = .95, } } @@ -33,14 +33,18 @@ config.window_padding = { - --- Colorscheme -local file = io.open(wezterm.config_dir .. "/colorscheme", "r") -if file then - config.color_scheme = file:read("*a") - file:close() -else - config.color_scheme = 'Catppuccin Mocha' +local function load_neovim_colorscheme() + -- Colorscheme + local file = io.open(wezterm.config_dir .. "/colorscheme", "r") + if file then + config.color_scheme = file:read("*a") + file:close() + else + config.color_scheme = 'Catppuccin Mocha' + end end + +load_neovim_colorscheme() + return config