-
Notifications
You must be signed in to change notification settings - Fork 4
/
.wezterm.lua
47 lines (43 loc) · 1.24 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
--
local wezterm = require 'wezterm'
local act = wezterm.action
local config = wezterm.config_builder()
config.check_for_updates = false
config.color_scheme = 'Tango (terminal.sexy)'
config.font = wezterm.font_with_fallback({'Cousine', 'Noto Color Emoji', 'Noto Sans CJK JP'})
config.font_size = 18.0
config.hide_mouse_cursor_when_typing = false
config.initial_cols = 132
config.initial_rows = 43
config.line_height = 1.0
config.mouse_bindings = {
{
event = {Up = {streak = 1, button = 'Left'}},
mods = 'NONE',
action = act.CompleteSelection 'ClipboardAndPrimarySelection',
},
{
event = {Down = {streak = 1, button = 'Middle'}},
mods = 'NONE',
action = act.Nop,
},
{
event = {Up = {streak = 1, button = 'Middle'}},
mods = 'NONE',
action = act.OpenLinkAtMouseCursor,
}
}
config.selection_word_boundary = " \t\n{}[]()<>\"'`"
config.window_padding = {
bottom = 0,
left = 0,
right = 0,
top = 0,
}
wezterm.on('format-tab-title', function(tab, tabs, panes, config, hover, max_width)
return 'Tab ' .. tab.tab_index
end)
wezterm.on('format-window-title', function(tab, pane, tabes, panes, config)
return 'WezTerm ' .. wezterm.version
end)
return config