From 75efd9dcc9adb0e93fcbf8628819eef2d2df1010 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 9 May 2023 16:29:44 -0500 Subject: [PATCH] style(wezterm): format with stylua --- dots/.config/wezterm/config/events.lua | 5 ++++- dots/.config/wezterm/config/gpu.lua | 5 ++++- dots/.config/wezterm/config/keybinds.lua | 2 +- dots/.config/wezterm/config/os/linux.lua | 2 +- dots/.config/wezterm/config/tabbar.lua | 4 +--- dots/.config/wezterm/wezterm.lua | 2 -- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/dots/.config/wezterm/config/events.lua b/dots/.config/wezterm/config/events.lua index d17954b7..ed43e45e 100644 --- a/dots/.config/wezterm/config/events.lua +++ b/dots/.config/wezterm/config/events.lua @@ -8,7 +8,10 @@ wezterm.on("trigger-nvim-with-scrollback", function(window, pane) f:write(scrollback) f:flush() f:close() - window:perform_action(wezterm.action({ SpawnCommandInNewTab = { args = { "nvim", name, "+$", "-R" , "+set filetype=termhistory"} } }), pane) + window:perform_action( + wezterm.action({ SpawnCommandInNewTab = { args = { "nvim", name, "+$", "-R", "+set filetype=termhistory" } } }), + pane + ) wezterm.sleep_ms(1000) os.remove(name) diff --git a/dots/.config/wezterm/config/gpu.lua b/dots/.config/wezterm/config/gpu.lua index c4aec322..fa4e7578 100644 --- a/dots/.config/wezterm/config/gpu.lua +++ b/dots/.config/wezterm/config/gpu.lua @@ -6,9 +6,12 @@ local wezterm = require("wezterm") local found_valid_gpu = false for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do if gpu.backend == "Vulkan" and not found_valid_gpu then - wezterm.log_info("Found Usable Vulkan GPU -- Device Name -> " .. gpu.name .."; Device Type -> " .. gpu.device_type) + wezterm.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" found_valid_gpu = true end end diff --git a/dots/.config/wezterm/config/keybinds.lua b/dots/.config/wezterm/config/keybinds.lua index dae4de26..9ea2ac7c 100644 --- a/dots/.config/wezterm/config/keybinds.lua +++ b/dots/.config/wezterm/config/keybinds.lua @@ -74,7 +74,7 @@ return { { key = "d", mods = "LEADER", action = wezterm.action.ShowDebugOverlay }, -- NOTE: Show Commands - { key = "a", mods = "LEADER", action = wezterm.action.ActivateCommandPalette } + { key = "a", mods = "LEADER", action = wezterm.action.ActivateCommandPalette }, }, key_tables = {}, } diff --git a/dots/.config/wezterm/config/os/linux.lua b/dots/.config/wezterm/config/os/linux.lua index dce224fc..638463f2 100644 --- a/dots/.config/wezterm/config/os/linux.lua +++ b/dots/.config/wezterm/config/os/linux.lua @@ -1,3 +1,3 @@ return { - font_locator = nil + font_locator = nil, } diff --git a/dots/.config/wezterm/config/tabbar.lua b/dots/.config/wezterm/config/tabbar.lua index 499c8e8d..46cf7fc1 100644 --- a/dots/.config/wezterm/config/tabbar.lua +++ b/dots/.config/wezterm/config/tabbar.lua @@ -1,7 +1,6 @@ local wezterm = require("wezterm") local color_names = require("config.theme.colors").color_names - local edges = { solid = { left = "", @@ -155,11 +154,10 @@ wezterm.on("update-status", function(window, pane) window:set_right_status(wezterm.format(elements)) end) - return { enable_tab_bar = true, tab_bar_at_bottom = true, tab_max_width = 48, use_fancy_tab_bar = false, - hide_tab_bar_if_only_one_tab = false + hide_tab_bar_if_only_one_tab = false, } diff --git a/dots/.config/wezterm/wezterm.lua b/dots/.config/wezterm/wezterm.lua index 5b16b411..56431a4e 100644 --- a/dots/.config/wezterm/wezterm.lua +++ b/dots/.config/wezterm/wezterm.lua @@ -24,8 +24,6 @@ if not found then os_config = {} end - local config = wlib.Table.merge(gpu, events, fonts, theme, tabbar, misc, rendering, keybinds, os_config) - return config