浏览代码

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

LostNeophyte 2 年之前
父节点
当前提交
1f92c07413
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lua/lvim/keymappings.lua

+ 3 - 0
lua/lvim/keymappings.lua

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