feat(wezterm): infinite timeout for leader, mouse scroll multiplier

This commit is contained in:
winston 2023-03-07 23:56:30 +01:00
parent f5be57a71d
commit 0a0a985b23
Signed by: winston
GPG key ID: 3786770EDBC2B481
2 changed files with 18 additions and 1 deletions

View file

@ -116,9 +116,25 @@ end
local M = {}
M.apply = function(c)
c.leader = { key = "s", mods = "CTRL", timeout_milliseconds = 5000 }
c.leader = {
key = "s",
mods = "CTRL",
timeout_milliseconds = math.maxinteger,
}
c.keys = shortcuts
c.disable_default_key_bindings = true
c.key_tables = key_tables
c.mouse_bindings = {
{
event = { Down = { streak = 1, button = { WheelUp = 1 } } },
mods = "NONE",
action = wezterm.action.ScrollByLine(5),
},
{
event = { Down = { streak = 1, button = { WheelDown = 1 } } },
mods = "NONE",
action = wezterm.action.ScrollByLine(-5),
},
}
end
return M

View file

@ -16,6 +16,7 @@ end
M.get_custom_colorschemes = function()
local oledppuccin = wezterm.color.get_builtin_schemes()["Catppuccin Mocha"]
oledppuccin.background = "#000000"
oledppuccin.ansi[6] = "#cba6f7"
oledppuccin.tab_bar.background = "#040404"
oledppuccin.tab_bar.inactive_tab.bg_color = "#0f0f0f"
oledppuccin.tab_bar.new_tab.bg_color = "#080808"