Last active
August 19, 2024 03:37
-
-
Save mattxlee/d22be6219fd5be81051aea0f8815e58b to your computer and use it in GitHub Desktop.
WezTerm config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Pull in the wezterm API | |
local wezterm = require 'wezterm' | |
-- This will hold the configuration. | |
local config = wezterm.config_builder() | |
config.audible_bell = 'Disabled' | |
config.font = wezterm.font('Source Code Pro', { weight = 'Medium' }) | |
config.font_size = 14 | |
config.font_rules = { | |
{ | |
intensity = 'Bold', | |
font = wezterm.font('Source Code Pro', { weight = 'Bold' }), | |
}, | |
} | |
config.color_scheme = 'GruvboxDark' | |
-- enhance the characters for word boundary when double clicking on some text | |
config.selection_word_boundary = '{}[]()"\'`.,;:│ ' | |
local act = wezterm.action | |
config.mouse_bindings = { | |
{ | |
event = { Down = { streak = 1, button = { WheelUp = 1 } } }, | |
mods = 'NONE', | |
action = act.Nop, | |
}, | |
{ | |
event = { Down = { streak = 1, button = { WheelDown = 1 } } }, | |
mods = 'NONE', | |
action = act.Nop, | |
}, | |
{ | |
event = { Down = { streak = 1, button = { WheelLeft = 1 } } }, | |
mods = 'NONE', | |
action = act.Nop, | |
}, | |
{ | |
event = { Down = { streak = 1, button = { WheelRight = 1 } } }, | |
mods = 'NONE', | |
action = act.Nop, | |
}, | |
} | |
-- and finally, return the configuration to wezterm | |
return config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment