-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwezterm.lua
65 lines (50 loc) · 2.07 KB
/
wezterm.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
local wezterm = require("wezterm")
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- Color scheme
config.color_scheme = "OneDark (Gogh)"
config.font_size = 18.0
-- Enable Nerd Fonts v2 glyphs
config.use_cap_height_to_scale_fallback_fonts = true
-- Window configuration
config.window_background_opacity = 0.95
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
config.native_macos_fullscreen_mode = true
-- Tab bar
config.use_fancy_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true
config.tab_max_width = 16
config.show_new_tab_button_in_tab_bar = false
config.hide_tab_bar_if_only_one_tab = false
-- Key bindings
config.keys = {
-- Split panes
{ key = "d", mods = "CMD", action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
{ key = "d", mods = "CMD|SHIFT", action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }) },
-- Navigate panes
{ key = "h", mods = "CMD", action = wezterm.action.ActivatePaneDirection("Left") },
{ key = "j", mods = "CMD", action = wezterm.action.ActivatePaneDirection("Down") },
{ key = "k", mods = "CMD", action = wezterm.action.ActivatePaneDirection("Up") },
{ key = "l", mods = "CMD", action = wezterm.action.ActivatePaneDirection("Right") },
-- Create and close tabs
{ key = "t", mods = "CMD", action = wezterm.action.SpawnTab("DefaultDomain") },
{ key = "w", mods = "CMD", action = wezterm.action.CloseCurrentTab({ confirm = false }) },
-- Toggle between panes
{ key = "[", mods = "CMD", action = wezterm.action.ActivatePaneDirection("Prev") },
{ key = "]", mods = "CMD", action = wezterm.action.ActivatePaneDirection("Next") },
-- Navigate tabs
{ key = "{", mods = "CMD|SHIFT", action = wezterm.action.ActivateTabRelative(-1) },
{ key = "}", mods = "CMD|SHIFT", action = wezterm.action.ActivateTabRelative(1) },
-- Toggle full screen
{ key = "Enter", mods = "CMD", action = wezterm.action.ToggleFullScreen },
-- Zoom pane to full tab size
{ key = "Enter", mods = "CMD|SHIFT", action = wezterm.action.TogglePaneZoomState },
}
return config