-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.wezterm.lua
74 lines (58 loc) · 1.84 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
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = wezterm.config_builder()
config.window_close_confirmation = "NeverPrompt"
config.term = "xterm-256color"
config.color_scheme = 'City Streets (terminal.sexy)'
-- Match darkvoid.nvim theme background
config.colors = {
background = "#1c1c1c",
foreground = "b2d8d8"
}
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
config.use_fancy_tab_bar = false
config.initial_cols = 100
config.initial_rows = 150
-- Disable title bar but enable resizable border
config.window_decorations = "RESIZE"
config.font_size = 15.5
config.font = wezterm.font("JetBrains Mono NL", { weight = "Regular", style = "Normal" })
-- Disable treating Alt as a modifier for commands
-- and let it work as a normal key
config.send_composed_key_when_left_alt_is_pressed = true
config.send_composed_key_when_right_alt_is_pressed = true
config.hide_tab_bar_if_only_one_tab = true
-- Enable clickable links
config.hyperlink_rules = {
-- Match standard http/https URLs
{
regex = [[\bhttps?://[\w.-]+(?:\.[\w.-]+)+[/\w._~:/?#\[\]@!$&'()*+,;=%-]*\b]],
format = "$0",
},
-- Match 'www' URLs without 'http'
{
regex = [[\bwww\.[\w.-]+(?:\.[\w.-]+)+[/\w._~:/?#\[\]@!$&'()*+,;=%-]*\b]],
format = "https://$0",
},
-- Match emails
{
regex = [[\b[\w._%+-]+@[\w.-]+\.[a-zA-Z]{2,}\b]],
format = "mailto:$0",
},
}
local act = wezterm.action
config.keys = {
-- Move tabs
{ key = '{', mods = 'SHIFT|SUPER', action = act.MoveTabRelative(-1) },
{ key = '}', mods = 'SHIFT|SUPER', action = act.MoveTabRelative(1) },
-- Pass Alt-j and Alt-k to Neovim
{ key = 'j', mods = 'ALT', action = act.SendKey { key = 'j', mods = 'ALT' } },
{ key = 'k', mods = 'ALT', action = act.SendKey { key = 'k', mods = 'ALT' } },
}
return config