feat(keybindings): operator pending mode (#3626)

This commit is contained in:
LostNeophyte 2022-12-21 09:23:07 +01:00 committed by GitHub
parent c70a094314
commit 1f92c07413
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@ local generic_opts = {
visual_mode = generic_opts_any, visual_mode = generic_opts_any,
visual_block_mode = generic_opts_any, visual_block_mode = generic_opts_any,
command_mode = generic_opts_any, command_mode = generic_opts_any,
operator_pending_mode = generic_opts_any,
term_mode = { silent = true }, term_mode = { silent = true },
} }
@ -19,6 +20,7 @@ local mode_adapters = {
visual_mode = "v", visual_mode = "v",
visual_block_mode = "x", visual_block_mode = "x",
command_mode = "c", command_mode = "c",
operator_pending_mode = "o",
} }
---@class Keys ---@class Keys
@ -28,6 +30,7 @@ local mode_adapters = {
---@field visual_mode table ---@field visual_mode table
---@field visual_block_mode table ---@field visual_block_mode table
---@field command_mode table ---@field command_mode table
---@field operator_pending_mode table
local defaults = { local defaults = {
insert_mode = { insert_mode = {