-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwezterm.lua
More file actions
55 lines (51 loc) · 1.97 KB
/
wezterm.lua
File metadata and controls
55 lines (51 loc) · 1.97 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
--[[
MacOS installation only
First install Wezterm:
brew install ripgrep lua fzf fd lazygit
brew tap homebrew/cask-fonts
brew search '/font-.*-nerd-font/' | awk '{ print $1 }' | xargs -I{} brew install --cask {} || true
brew install --cask wezterm
--]]
local wezterm = require("wezterm")
local action = wezterm.action
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- (here will be added actual configuration)
config = {
font = wezterm.font({
family = "JetBrains Mono",
weight = "Medium",
harfbuzz_features = { "calt=0", "clig=0", "liga=0" }, -- disable ligatures
}),
automatically_reload_config = true,
adjust_window_size_when_changing_font_size = false,
color_scheme = "Catppuccin Mocha",
window_decorations = "TITLE | RESIZE",
check_for_updates = false,
use_fancy_tab_bar = false,
tab_bar_at_bottom = true,
enable_tab_bar = true,
font_size = 15.0,
line_height = 1.0,
--window_padding = { left = "0.5cell", right = "0.5cell", top = "0.5cell", bottom = "0.5cell" },
window_padding = { left = 3, right = 3, top = 3, bottom = 3 },
default_cursor_style = "SteadyBlock",
-- window_background_opacity = 0.90,
-- macos_window_background_blur = 20,
initial_rows = 48,
initial_cols = 120,
keys = {
{ key = "d", mods = "CMD|SHIFT", action = action.SplitVertical({ domain = "CurrentPaneDomain" }) },
{ key = "d", mods = "CMD", action = action.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
{ key = "k", mods = "CMD", action = action.ClearScrollback("ScrollbackAndViewport") },
{ key = "w", mods = "CMD", action = action.CloseCurrentPane({ confirm = false }) },
{ key = "w", mods = "CMD|SHIFT", action = action.CloseCurrentTab({ confirm = false }) },
{ key = "LeftArrow", mods = "CMD", action = action.SendKey({ key = "Home" }) },
{ key = "RightArrow", mods = "CMD", action = action.SendKey({ key = "End" }) },
{ key = "p", mods = "CMD|SHIFT", action = action.ActivateCommandPalette },
},
}
-- No edits after this line --
return config