-
Notifications
You must be signed in to change notification settings - Fork 258
Expand file tree
/
Copy path.wezterm.lua
More file actions
126 lines (101 loc) · 6.05 KB
/
.wezterm.lua
File metadata and controls
126 lines (101 loc) · 6.05 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
-- ╔══════════════════════════════════════════════════════════════════════════════╗
-- ║ GENTLEMAN DOTS - WEZTERM ║
-- ║ Optimized for Neovim ║
-- ╚══════════════════════════════════════════════════════════════════════════════╝
local wezterm = require("wezterm")
local config = {}
-- ┌──────────────────────────────────────────────────────────────────────────────┐
-- │ FONT │
-- └──────────────────────────────────────────────────────────────────────────────┘
config.font = wezterm.font("IosevkaTerm NF")
config.font_size = 14.0
-- ┌──────────────────────────────────────────────────────────────────────────────┐
-- │ WINDOW │
-- └──────────────────────────────────────────────────────────────────────────────┘
config.window_background_opacity = 0.95
config.macos_window_background_blur = 20
config.win32_system_backdrop = "Acrylic"
config.window_padding = {
top = 0,
right = 0,
left = 0,
bottom = 0,
}
config.enable_scroll_bar = false
config.hide_tab_bar_if_only_one_tab = true
-- ┌──────────────────────────────────────────────────────────────────────────────┐
-- │ CURSOR │
-- └──────────────────────────────────────────────────────────────────────────────┘
config.default_cursor_style = "SteadyBlock"
config.cursor_blink_rate = 500
config.cursor_blink_ease_in = "Constant"
config.cursor_blink_ease_out = "Constant"
-- ┌──────────────────────────────────────────────────────────────────────────────┐
-- │ NEOVIM OPTIMIZATIONS │
-- └──────────────────────────────────────────────────────────────────────────────┘
-- Terminal & Colors
-- WSL doesn't have wezterm terminfo, so we use xterm-256color there
-- See: https://github.com/Gentleman-Programming/Gentleman.Dots/issues/117
if wezterm.target_triple:find("windows") then
config.term = "xterm-256color"
else
config.term = "wezterm"
end
config.enable_csi_u_key_encoding = true
-- Undercurl support (LSP diagnostics, spelling)
config.underline_thickness = 2
config.underline_position = -2
-- Scrollback
config.scrollback_lines = 10000
-- Performance
config.max_fps = 240
-- Image support
config.enable_kitty_graphics = true
-- Input handling
config.use_dead_keys = false
config.send_composed_key_when_left_alt_is_pressed = false
config.send_composed_key_when_right_alt_is_pressed = false
-- ┌──────────────────────────────────────────────────────────────────────────────┐
-- │ GENTLEMAN THEME │
-- └──────────────────────────────────────────────────────────────────────────────┘
config.colors = {
-- Base Colors
foreground = "#f3f6f9",
background = "#06080f",
-- Cursor
cursor_bg = "#e0c15a",
cursor_fg = "#06080f",
cursor_border = "#e0c15a",
-- Selection
selection_fg = "#f3f6f9",
selection_bg = "#263356",
-- Normal Colors
ansi = {
"#06080f", -- black
"#cb7c94", -- red
"#b7cc85", -- green
"#ffe066", -- yellow
"#7fb4ca", -- blue
"#ff8dd7", -- magenta
"#7aa89f", -- cyan
"#f3f6f9", -- white
},
-- Bright Colors
brights = {
"#8a8fa3", -- black
"#de8fa8", -- red
"#d1e8a9", -- green
"#fff7b1", -- yellow
"#a3d4d5", -- blue
"#ffaeea", -- magenta
"#7fb4ca", -- cyan
"#f3f6f9", -- white
},
}
-- ┌──────────────────────────────────────────────────────────────────────────────┐
-- │ WINDOWS (WSL) │
-- └──────────────────────────────────────────────────────────────────────────────┘
-- Uncomment for Windows/WSL:
-- config.default_domain = 'WSL:Ubuntu'
-- config.front_end = "OpenGL"
return config