From 62ff7836e78a7aa0789ed44ba940f443c2f039ce Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Fri, 8 Nov 2024 15:32:04 +0200 Subject: [PATCH] chore(config): wezterm config formatting, fonts --- config/wezterm/wezterm.lua | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/config/wezterm/wezterm.lua b/config/wezterm/wezterm.lua index 210aa8f..fd2fdd8 100644 --- a/config/wezterm/wezterm.lua +++ b/config/wezterm/wezterm.lua @@ -1,9 +1,14 @@ -local wezterm = require("wezterm") +local wezterm = require 'wezterm' local config = wezterm.config_builder() -- Font and font size config.font_size = 14.0 -config.font = wezterm.font("JetBrainsMonoNL Nerd Font Mono") +config.font = wezterm.font_with_fallback { + 'JetBrainsMonoNL Nerd Font Mono', + 'JetBrains Mono', + 'Noto Color Emoji', + 'Symbols Nerd Font Mono', +} -- Make the window a bit transparent config.window_background_opacity = 0.97 @@ -15,16 +20,16 @@ config.send_composed_key_when_left_alt_is_pressed = true -- Function to detect the theme based on appearance function Scheme_for_appearance(appearance) - if appearance:find("Dark") then - return "Tokyo Night Storm" + if appearance:find 'Dark' then + return 'Tokyo Night Storm' else - return "Tokyo Night Day" + return 'Tokyo Night Day' end end -- Set the color scheme based on appearance ---@diagnostic disable-next-line: unused-local -wezterm.on("window-config-reloaded", function(window, pane) +wezterm.on('window-config-reloaded', function(window, pane) local overrides = window:get_config_overrides() or {} local appearance = window:get_appearance() local scheme = Scheme_for_appearance(appearance)