-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.wezterm.lua
90 lines (84 loc) · 1.95 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
-- Pull in the wezterm API
local wezterm = require("wezterm")
-- This will hold the configuration.
local config = wezterm.config_builder()
-- local my_default = wezterm.color.get_default_colors()
-- my_default.cursor_bg = '#abcbd3'
-- my_default.cursor_border ='#abcbd3'
-- config.color_schemes = {
-- ['My Default'] = my_default
-- }
--
-- config.color_scheme = 'My Default'
-- This is where you actually apply your config choices
-- For example, changing the color scheme:
-- config.color_scheme = 'AdventureTime'
config.color_scheme = "Catppuccin Mocha"
config.enable_tab_bar = false
config.font = wezterm.font("FiraCode Nerd Font Mono")
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
config.keys = {
-- Turn off the default CMD-m Hide action, allowing CMD-m to
-- be potentially recognized and handled by the tab
{
key = "Enter",
mods = "ALT",
action = wezterm.action.DisableDefaultAssignment,
},
{
key = "F11",
action = wezterm.action.ToggleFullScreen,
},
{
key = "h",
mods = "SHIFT|CTRL",
action = wezterm.action.ActivatePaneDirection("Left"),
},
{
key = "h",
mods = "SHIFT|CTRL|ALT",
action = wezterm.action.AdjustPaneSize({ "Left", 1 }),
},
{
key = "l",
mods = "SHIFT|CTRL",
action = wezterm.action.ActivatePaneDirection("Right"),
},
{
key = "l",
mods = "SHIFT|CTRL|ALT",
action = wezterm.action.AdjustPaneSize({ "Right", 1 }),
},
{
key = "k",
mods = "SHIFT|CTRL",
action = wezterm.action.ActivatePaneDirection("Up"),
},
{
key = "k",
mods = "SHIFT|CTRL|ALT",
action = wezterm.action.AdjustPaneSize({ "Up", 1 }),
},
{
key = "j",
mods = "SHIFT|CTRL",
action = wezterm.action.ActivatePaneDirection("Down"),
},
{
key = "j",
mods = "SHIFT|CTRL|ALT",
action = wezterm.action.AdjustPaneSize({ "Down", 1 }),
},
--{
-- Key = "\\",
-- mods = 'CTRL',
-- action = wezterm.action.DisableDefaultAssignment
-- }
}
-- and finally, return the configuration to wezterm
return config