-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.wezterm.lua
51 lines (39 loc) · 1.69 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
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
--- BLERGH: WezTerm is currently barfing with:
-- ERROR: interface 'wl_surface' has no event 2
-- Likely due to a fractional scaling bug. Disabling Wayland is a quick fix
--- See: https://github.com/wez/wezterm/issues/4483
-- https://github.com/wez/wezterm/issues/5604
--- TODO: Check back on this getting patched in a new release
config.enable_wayland = false
config.automatically_reload_config = true
-- ===== Mouse Handling =====
--- Note: This just applies to WezTerm's own pane handling; not Tmux
config.pane_focus_follows_mouse = true
-- NOTE: This affects _ALL_ `mouse_bindings`; by default Wez won't even
--- consider your bindings unless the bypass key is held down. The default
--- Wez mod key is `SHIFT`.
-- @See https://wezfurlong.org/wezterm/config/lua/config/bypass_mouse_reporting_modifiers.html
config.bypass_mouse_reporting_modifiers = 'SUPER'
config.mouse_bindings = {
--- Put any desired additions here
}
-- ===== /Mouse Handling =====
-- ===== Keyboard Mappings =====
config.keys = {
-- Enable CTRL+V
{ key="v", mods="CTRL", action=wezterm.action{PasteFrom="Clipboard"} },
}
-- ===== /Keyboard Mappings =====
-- ===== Hyperlink Handling =====
--- Default hyperlink rules (note that setting `config.hyperlink_rules` auto-clears
--- the default, so we have to re-assign to override with additions)
config.hyperlink_rules = wezterm.default_hyperlink_rules()
---- VS Code URI handling - https://github.com/microsoft/vscode/issues/4883#issuecomment-270141535
table.insert(config.hyperlink_rules, {
regex = [[(?m)^(/.+)[\t ]*$]],
format = 'vscode://file/$1',
})
-- ===== /Hyperlink Handling =====
return config