From 2cc5e697a90f963d19732b956bb09760b57b4bb4 Mon Sep 17 00:00:00 2001 From: Triston Date: Sat, 29 Jun 2024 21:16:31 -0400 Subject: [PATCH] replace return to clear highlight with escape --- lua/config/keymaps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 0525b2b..67c15fe 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -8,7 +8,7 @@ map("n", "", "") map("n", "", "w") map("n", "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true }) map("n", "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true }) -map("n", "", '{->v:hlsearch ? ":nohl\\" : "\\"}()', { expr = true }) +map("n", "", '{->v:hlsearch ? ":nohl\\" : "\\"}()', { expr = true }) map("v", "J", ":m '>+1gv=gv") map("v", "K", ":m '<-2gv=gv")