style(wezterm): format with stylua
This commit is contained in:
parent
31e24ac75a
commit
75efd9dcc9
@ -8,7 +8,10 @@ wezterm.on("trigger-nvim-with-scrollback", function(window, pane)
|
|||||||
f:write(scrollback)
|
f:write(scrollback)
|
||||||
f:flush()
|
f:flush()
|
||||||
f:close()
|
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)
|
wezterm.sleep_ms(1000)
|
||||||
os.remove(name)
|
os.remove(name)
|
||||||
|
@ -6,9 +6,12 @@ local wezterm = require("wezterm")
|
|||||||
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
|
||||||
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.webgpu_preferred_adapter = gpu
|
||||||
config.front_end = "WebGpu"
|
config.front_end = "WebGpu"
|
||||||
|
config.webgpu_power_preference = "HighPerformance"
|
||||||
found_valid_gpu = true
|
found_valid_gpu = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -74,7 +74,7 @@ return {
|
|||||||
{ key = "d", mods = "LEADER", action = wezterm.action.ShowDebugOverlay },
|
{ key = "d", mods = "LEADER", action = wezterm.action.ShowDebugOverlay },
|
||||||
|
|
||||||
-- NOTE: Show Commands
|
-- NOTE: Show Commands
|
||||||
{ key = "a", mods = "LEADER", action = wezterm.action.ActivateCommandPalette }
|
{ key = "a", mods = "LEADER", action = wezterm.action.ActivateCommandPalette },
|
||||||
},
|
},
|
||||||
key_tables = {},
|
key_tables = {},
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
return {
|
return {
|
||||||
font_locator = nil
|
font_locator = nil,
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
local wezterm = require("wezterm")
|
local wezterm = require("wezterm")
|
||||||
local color_names = require("config.theme.colors").color_names
|
local color_names = require("config.theme.colors").color_names
|
||||||
|
|
||||||
|
|
||||||
local edges = {
|
local edges = {
|
||||||
solid = {
|
solid = {
|
||||||
left = "",
|
left = "",
|
||||||
@ -155,11 +154,10 @@ wezterm.on("update-status", function(window, pane)
|
|||||||
window:set_right_status(wezterm.format(elements))
|
window:set_right_status(wezterm.format(elements))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
enable_tab_bar = true,
|
enable_tab_bar = true,
|
||||||
tab_bar_at_bottom = true,
|
tab_bar_at_bottom = true,
|
||||||
tab_max_width = 48,
|
tab_max_width = 48,
|
||||||
use_fancy_tab_bar = false,
|
use_fancy_tab_bar = false,
|
||||||
hide_tab_bar_if_only_one_tab = false
|
hide_tab_bar_if_only_one_tab = false,
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,6 @@ if not found then
|
|||||||
os_config = {}
|
os_config = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local config = wlib.Table.merge(gpu, events, fonts, theme, tabbar, misc, rendering, keybinds, os_config)
|
local config = wlib.Table.merge(gpu, events, fonts, theme, tabbar, misc, rendering, keybinds, os_config)
|
||||||
|
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
Loading…
Reference in New Issue
Block a user