feat(wezterm): infinite timeout for leader, mouse scroll multiplier
This commit is contained in:
parent
f5be57a71d
commit
0a0a985b23
2 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue