From 1ac9f034ca6c2d5e2f72438112885d28a7f767f6 Mon Sep 17 00:00:00 2001 From: ayamir Date: Thu, 19 Oct 2023 22:10:22 +0800 Subject: [PATCH] fix(keymap): use `` with hjkl to navigate under `t` mode. Signed-off-by: ayamir --- lua/core/mapping.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/core/mapping.lua b/lua/core/mapping.lua index 2103b0f64..39c58cf97 100644 --- a/lua/core/mapping.lua +++ b/lua/core/mapping.lua @@ -17,10 +17,10 @@ local core_map = { ["n|"] = map_cmd("l"):with_noremap():with_desc("window: Focus right"), ["n|"] = map_cmd("j"):with_noremap():with_desc("window: Focus down"), ["n|"] = map_cmd("k"):with_noremap():with_desc("window: Focus up"), - ["t|"] = map_cmd("wincmd h"):with_silent():with_noremap():with_desc("window: Focus left"), - ["t|"] = map_cmd("wincmd l"):with_silent():with_noremap():with_desc("window: Focus right"), - ["t|"] = map_cmd("wincmd j"):with_silent():with_noremap():with_desc("window: Focus down"), - ["t|"] = map_cmd("wincmd k"):with_silent():with_noremap():with_desc("window: Focus up"), + ["t|h"] = map_cmd("wincmd h"):with_silent():with_noremap():with_desc("window: Focus left"), + ["t|l"] = map_cmd("wincmd l"):with_silent():with_noremap():with_desc("window: Focus right"), + ["t|j"] = map_cmd("wincmd j"):with_silent():with_noremap():with_desc("window: Focus down"), + ["t|k"] = map_cmd("wincmd k"):with_silent():with_noremap():with_desc("window: Focus up"), ["n|"] = map_cr("vertical resize -5"):with_silent():with_desc("window: Resize -5 vertically"), ["n|"] = map_cr("vertical resize +5"):with_silent():with_desc("window: Resize +5 vertically"), ["n|"] = map_cr("resize -2"):with_silent():with_desc("window: Resize -2 horizontally"),