From d6bb907cf042463073540f7334e4271a4d2fb108 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 9 Jun 2023 16:27:45 +0200 Subject: [PATCH] fix(keymaps): dont map jk in visual. Use x instead of v. Fixes #912 --- lua/lazyvim/config/keymaps.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/config/keymaps.lua b/lua/lazyvim/config/keymaps.lua index ea735661..5716bf6d 100644 --- a/lua/lazyvim/config/keymaps.lua +++ b/lua/lazyvim/config/keymaps.lua @@ -16,8 +16,8 @@ local function map(mode, lhs, rhs, opts) end -- better up/down -map({ "n", "v" }, "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true }) -map({ "n", "v" }, "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true }) +map({ "n", "x" }, "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true }) +map({ "n", "x" }, "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true }) -- Move to window using the hjkl keys map("n", "", "h", { desc = "Go to left window", remap = true })