-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwezterm.lua
106 lines (92 loc) · 1.91 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
-- Pull in the wezterm API
local wezterm = require("wezterm")
local act = wezterm.action
-- This will hold the configuration.
local config = wezterm.config_builder()
-- For example, changing the color scheme:
config.color_scheme = "Tokyo Night"
config.font = wezterm.font("MesloLGLDZ Nerd Font Mono")
config.font_size = 13
config.max_fps = 120
-- config.leader = { key = '`', timeout_milliseconds = 1000 }
-- TODO: missing command left/right
config.keys = {
{
key = "LeftArrow",
mods = "OPT",
action = act.SendKey({
key = "b",
mods = "ALT",
}),
},
{
key = "RightArrow",
mods = "OPT",
action = act.SendKey({
key = "f",
mods = "ALT",
}),
},
{
key = "LeftArrow",
mods = "CMD",
action = act.SendKey({
key = "a",
mods = "CTRL",
}),
},
{
key = "RightArrow",
mods = "CMD",
action = act.SendKey({
key = "e",
mods = "CTRL",
}),
},
{
key = "Backspace",
mods = "CMD",
action = act.SendKey({
key = "u",
mods = "CTRL",
}),
},
{
key = ",",
mods = "SUPER",
action = act.SpawnCommandInNewTab({
cwd = wezterm.home_dir,
args = { "nvim", wezterm.config_file },
}),
},
-- { key = "|", mods = "LEADER", action = act.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
-- { key = "-", mods = "LEADER", action = act.SplitVertical({ domain = "CurrentPaneDomain" }) },
{
key = "Enter",
mods = "CMD",
action = act.ToggleFullScreen, -- Uses rectangle
},
{
key = "p",
mods = "CMD",
action = act.Multiple({
act.SendKey({ key = "`" }),
act.SendKey({ key = "p", mods = "CTRL" }),
}),
},
{
key = "j",
mods = "CMD",
action = act.Multiple({
act.SendKey({ key = "`" }),
act.SendKey({ key = "j", mods = "CTRL" }),
}),
},
}
config.set_environment_variables = {
PATH = "/opt/homebrew/bin:" .. os.getenv("PATH"),
}
config.enable_tab_bar = false
config.window_decorations = "RESIZE"
config.window_close_confirmation = "NeverPrompt"
return config