style(wezterm): format with stylua

This commit is contained in:
Price Hiller 2023-05-09 16:29:44 -05:00
parent 31e24ac75a
commit 75efd9dcc9
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
6 changed files with 11 additions and 9 deletions

View File

@ -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)

View File

@ -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

View File

@ -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 = {},
}

View File

@ -1,3 +1,3 @@
return {
font_locator = nil
font_locator = nil,
}

View File

@ -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,
}

View File

@ -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