From 02a2850ae4686b7f09b6f51286d87d8828688fd8 Mon Sep 17 00:00:00 2001 From: Xie Zejian Date: Tue, 8 Aug 2023 10:43:40 +0800 Subject: [PATCH] feat: multi window support for hop (#936) --- lua/keymap/editor.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/keymap/editor.lua b/lua/keymap/editor.lua index 354a01ed7..30d81bc89 100644 --- a/lua/keymap/editor.lua +++ b/lua/keymap/editor.lua @@ -72,11 +72,11 @@ local plug_map = { ["nx|gea"] = map_cr("EasyAlign"):with_desc("edit: Align with delimiter"), -- Plugin: hop - ["n|w"] = map_cu("HopWord"):with_noremap():with_desc("jump: Goto word"), - ["n|j"] = map_cu("HopLine"):with_noremap():with_desc("jump: Goto line"), - ["n|k"] = map_cu("HopLine"):with_noremap():with_desc("jump: Goto line"), - ["n|c"] = map_cu("HopChar1"):with_noremap():with_desc("jump: Goto one char"), - ["n|cc"] = map_cu("HopChar2"):with_noremap():with_desc("jump: Goto two chars"), + ["nv|w"] = map_cmd("HopWordMW"):with_noremap():with_desc("jump: Goto word"), + ["nv|j"] = map_cmd("HopLineMW"):with_noremap():with_desc("jump: Goto line"), + ["nv|k"] = map_cmd("HopLineMW"):with_noremap():with_desc("jump: Goto line"), + ["nv|c"] = map_cmd("HopChar1MW"):with_noremap():with_desc("jump: Goto one char"), + ["nv|cc"] = map_cmd("HopChar2MW"):with_noremap():with_desc("jump: Goto two chars"), -- Plugin: treehopper ["o|m"] = map_cu("lua require('tsht').nodes()"):with_silent():with_desc("jump: Operate across syntax tree"),