feat(alacritty): reintroduce Vi mode, set custom colors for it

This commit is contained in:
Oliver Ladner 2025-08-25 15:05:03 +02:00
commit 62cade5ce5

View file

@ -9,7 +9,8 @@ size = 18
# offset = { x = 0, y = 0 } # offset = { x = 0, y = 0 }
[window] [window]
option_as_alt = "Both" # option_as_alt = "Both"
option_as_alt = "None"
decorations = "None" decorations = "None"
padding = { x = 12, y = 5 } padding = { x = 12, y = 5 }
dynamic_padding = true dynamic_padding = true
@ -31,8 +32,11 @@ focused_match = { foreground = "#dedede", background = "#007a61" }
background = "#007a61" background = "#007a61"
foreground = "#00dcaf" foreground = "#00dcaf"
[keyboard] [colors.vi_mode_cursor]
text = "#dedede"
cursor = "#007a61"
[keyboard]
bindings = [ bindings = [
# Required to make Ctrl+/ work on macOS (used in Telescope) # Required to make Ctrl+/ work on macOS (used in Telescope)
{ chars = "\u001F", key = "Slash", mods = "Control" }, { chars = "\u001F", key = "Slash", mods = "Control" },
@ -44,6 +48,7 @@ bindings = [
{ key = "PageDown", mods = "Shift", action = "ScrollPageDown" }, { key = "PageDown", mods = "Shift", action = "ScrollPageDown" },
# Disable Cmd+w to avoid accidental closing. Disabling Cmd+q needs more work # Disable Cmd+w to avoid accidental closing. Disabling Cmd+q needs more work
{ key = "w", mods = "Command", action = "None" }, { key = "w", mods = "Command", action = "None" },
{ key = "v", mods = "Alt", action="ToggleViMode" },
] ]
[general] [general]