-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwezterm.lua
80 lines (68 loc) · 1.9 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
local wt = require 'wezterm'
local config = wt.config_builder()
local smsp = wt.plugin.require('https://github.com/mrjones2014/smart-splits.nvim')
-- TODO: the tt base16 scheme is different. make this work via pr or a custom function
-- local colors, metadata = wt.color.load_base16_scheme("/Users/brent/.config/tt-schemes/base16/tomorrow-night.yaml")
-- config.colors = colors
-- TODO: change to base16
local theme = "Tomorrow Night"
config.color_scheme = theme
local colors = wt.color.get_builtin_schemes()[theme]
config.default_cursor_style = "BlinkingBar"
config.hide_tab_bar_if_only_one_tab = false
config.tab_bar_at_bottom = false
config.use_fancy_tab_bar = true
if wt.target_triple:match("darwin") ~= nil then
config.native_macos_fullscreen_mode = true
config.window_decorations = "INTEGRATED_BUTTONS|RESIZE"
else
config.window_decorations = "RESIZE"
end
config.font = wt.font 'SF Mono'
config.font_size = 13
config.window_padding = {
left = 32,
right = 32,
top = 32,
bottom = 32,
}
config.window_frame = {
font = wt.font { family = 'SF Compact' },
font_size = 13,
active_titlebar_bg = colors.ansi[1],
inactive_titlebar_bg = colors.ansi[1],
}
config.colors = {
tab_bar = {
background = colors.foreground,
inactive_tab_edge = colors.ansi[1],
active_tab = {
bg_color = colors.background,
fg_color = colors.foreground,
},
inactive_tab = {
bg_color = colors.foreground,
fg_color = colors.background,
},
inactive_tab_hover = {
bg_color = colors.ansi[5],
fg_color = colors.background,
},
new_tab = {
bg_color = colors.ansi[1],
fg_color = colors.background,
},
new_tab_hover = {
bg_color = colors.ansi[5],
fg_color = colors.background,
},
},
}
smsp.apply_to_config(config, {
direction_keys = { 'h', 'j', 'k', 'l' },
modifiers = {
move = 'CTRL',
resize = 'META',
},
})
return config