wezterm: update to make it work to latest version

This commit is contained in:
Gabriel Arazas 2024-10-04 15:27:34 +08:00
parent a8488e4595
commit 70a153d723

View File

@ -5,8 +5,8 @@ function module.apply_to_config(config)
-- Quick select-related options. Quite similar to Kitty hints which is -- Quick select-related options. Quite similar to Kitty hints which is
-- nice. -- nice.
config.quick_select_patterns = { config.quick_select_patterns = {
"[0-9a-f]{7,40}", -- SHA1 hashes, usually used for Git. "[0-9a-f]{7,40}", -- SHA1 hashes, usually used for Git.
"[0-9a-f]{7,64}", -- SHA256 hashes, used often for getting hashes for Guix packaging. "[0-9a-f]{7,64}", -- SHA256 hashes, used often for getting hashes for Guix packaging.
"sha256-.{44,128}", -- SHA256 hashes in Base64, used often in getting hashes for Nix packaging. "sha256-.{44,128}", -- SHA256 hashes in Base64, used often in getting hashes for Nix packaging.
} }
@ -16,6 +16,7 @@ function module.apply_to_config(config)
-- Enable some things for Wayland. -- Enable some things for Wayland.
if os.getenv "XDG_SESSION_TYPE" == "wayland" then if os.getenv "XDG_SESSION_TYPE" == "wayland" then
config.enable_wayland = true config.enable_wayland = true
config.front_end = "WebGpu"
config.force_reverse_video_cursor = true config.force_reverse_video_cursor = true
end end