style(wezterm): format with stylua
This commit is contained in:
parent
ab9ad001b2
commit
ca35deb1a2
@ -7,9 +7,7 @@ local log = require("lib.log")
|
|||||||
local found_valid_gpu = false
|
local found_valid_gpu = false
|
||||||
for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do
|
for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do
|
||||||
if gpu.backend == "Vulkan" and not found_valid_gpu then
|
if gpu.backend == "Vulkan" and not found_valid_gpu then
|
||||||
log.info(
|
log.info("Found Usable Vulkan GPU -- Device Name -> " .. gpu.name .. "; Device Type -> " .. gpu.device_type)
|
||||||
"Found Usable Vulkan GPU -- Device Name -> " .. gpu.name .. "; Device Type -> " .. gpu.device_type
|
|
||||||
)
|
|
||||||
config.webgpu_preferred_adapter = gpu
|
config.webgpu_preferred_adapter = gpu
|
||||||
config.front_end = "WebGpu"
|
config.front_end = "WebGpu"
|
||||||
config.webgpu_power_preference = "HighPerformance"
|
config.webgpu_power_preference = "HighPerformance"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
font_locator = nil,
|
font_locator = nil,
|
||||||
enable_wayland = true,
|
enable_wayland = true,
|
||||||
window_decorations = "NONE"
|
window_decorations = "NONE",
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,8 @@ local M = {}
|
|||||||
local function system_log(message, opts)
|
local function system_log(message, opts)
|
||||||
local log_unit = "wezterm"
|
local log_unit = "wezterm"
|
||||||
if os_detected == "linux" then
|
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
|
if not opts.ignore_result or opts.ignore_result == nil then
|
||||||
---@diagnostic disable-next-line: need-check-nil
|
---@diagnostic disable-next-line: need-check-nil
|
||||||
local output = handle:read("*a")
|
local output = handle:read("*a")
|
||||||
@ -39,7 +40,6 @@ local function system_log(message, opts)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
---Format message with log options
|
---Format message with log options
|
||||||
---@param message string
|
---@param message string
|
||||||
---@param opts LogOpts
|
---@param opts LogOpts
|
||||||
|
Loading…
Reference in New Issue
Block a user