From ca35deb1a22a1055cbcf31326f215c7f9fead74e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 29 Aug 2023 23:33:49 -0500 Subject: [PATCH] style(wezterm): format with stylua --- dots/.config/wezterm/config/gpu.lua | 4 +--- dots/.config/wezterm/config/os/linux.lua | 2 +- dots/.config/wezterm/lib/log.lua | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dots/.config/wezterm/config/gpu.lua b/dots/.config/wezterm/config/gpu.lua index 5887e0f7..7ec396b6 100644 --- a/dots/.config/wezterm/config/gpu.lua +++ b/dots/.config/wezterm/config/gpu.lua @@ -7,9 +7,7 @@ local log = require("lib.log") local found_valid_gpu = false for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do if gpu.backend == "Vulkan" and not found_valid_gpu then - log.info( - "Found Usable Vulkan GPU -- Device Name -> " .. gpu.name .. "; Device Type -> " .. gpu.device_type - ) + log.info("Found Usable Vulkan GPU -- Device Name -> " .. gpu.name .. "; Device Type -> " .. gpu.device_type) config.webgpu_preferred_adapter = gpu config.front_end = "WebGpu" config.webgpu_power_preference = "HighPerformance" diff --git a/dots/.config/wezterm/config/os/linux.lua b/dots/.config/wezterm/config/os/linux.lua index b974d66e..c05f30ca 100644 --- a/dots/.config/wezterm/config/os/linux.lua +++ b/dots/.config/wezterm/config/os/linux.lua @@ -1,5 +1,5 @@ return { font_locator = nil, enable_wayland = true, - window_decorations = "NONE" + window_decorations = "NONE", } diff --git a/dots/.config/wezterm/lib/log.lua b/dots/.config/wezterm/lib/log.lua index 86d4ae2e..5f3ce566 100644 --- a/dots/.config/wezterm/lib/log.lua +++ b/dots/.config/wezterm/lib/log.lua @@ -19,7 +19,8 @@ local M = {} local function system_log(message, opts) local log_unit = "wezterm" if os_detected == "linux" then - local handle = io.popen(string.format("systemd-cat -t %s -p %s echo '%s'", log_unit, opts.level:lower(), message)) + local handle = + io.popen(string.format("systemd-cat -t %s -p %s echo '%s'", log_unit, opts.level:lower(), message)) if not opts.ignore_result or opts.ignore_result == nil then ---@diagnostic disable-next-line: need-check-nil local output = handle:read("*a") @@ -39,7 +40,6 @@ local function system_log(message, opts) end end - ---Format message with log options ---@param message string ---@param opts LogOpts