Last active
December 29, 2024 07:44
-
-
Save gordinmitya/e70a362cffa4f3e6564c26eb288c4399 to your computer and use it in GitHub Desktop.
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
local wezterm = require 'wezterm' | |
local config = wezterm.config_builder() | |
config.color_scheme = 'Catppuccin Frappe' | |
config.initial_rows = 24 | |
config.initial_cols = 80 | |
config.font = wezterm.font('JetBrains Mono', { weight = 600 }) | |
config.font_size = 16.0 | |
config.window_decorations = "INTEGRATED_BUTTONS|RESIZE" | |
config.window_close_confirmation = "NeverPrompt" | |
config.use_fancy_tab_bar = false | |
config.keys = { | |
-- Make Option-Left equivalent to Alt-b which many line editors interpret as backward-word | |
{ key="LeftArrow", mods="OPT", action=wezterm.action{SendString="\x1bb"} }, | |
-- Make Option-Right equivalent to Alt-f; forward-word | |
{ key="RightArrow", mods="OPT", action=wezterm.action{SendString="\x1bf"} }, | |
-- iTerm2 keys for pane management | |
{ key = 'd', mods = 'CMD', action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' } }, | |
{ key = 'd', mods = 'CMD|SHIFT', action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' }, }, | |
-- iTerm2 keys for pane navigation | |
{ key = 'LeftArrow', mods = 'CMD|OPT', action = wezterm.action{ActivatePaneDirection="Left"} }, | |
{ key = 'UpArrow', mods = 'CMD|OPT', action = wezterm.action{ActivatePaneDirection="Up"} }, | |
{ key = 'RightArrow', mods = 'CMD|OPT', action = wezterm.action{ActivatePaneDirection="Right"} }, | |
{ key = 'DownArrow', mods = 'CMD|OPT', action = wezterm.action{ActivatePaneDirection="Down"} }, | |
} | |
return config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment