local wez = require 'wezterm' local nugu = require 'bugabinga.nugu' -- wezterm.gui is not available to the mux server, so take care to -- do something reasonable when this config is evaluated by the mux local get_appearance = function () if wez.gui then return wez.gui.get_appearance() end return 'Dark' end local scheme_for_appearance = function ( appearance ) if appearance:find( 'Dark', 1, true ) then return 'nugu-dark' else return 'nugu-light' end end return function ( cfg ) local current_scheme = scheme_for_appearance( get_appearance() ) cfg.color_scheme = current_scheme -- Set color schemes from nugu cfg.color_schemes = nugu.schemes -- Apply nugu window frame styling nugu.apply_window_frame( cfg, current_scheme ) cfg.font = wez.font_with_fallback { 'JetBrains Mono', } cfg.font_rules = { -- the goal is to make comments in neovim look beautiful -- because comments are the true GOAT of code { italic = true, intensity = 'Bold', font = wez.font_with_fallback { { family = 'JetBrains Mono', weight = 'Bold', style = 'Italic', }, }, }, -- this gives string values in neovim a special touch { italic = true, intensity = 'Normal', font = wez.font_with_fallback { { family = 'JetBrains Mono', style = 'Italic', }, }, }, } end