From 93d36adea82fc46e983c737a7e34415ad1be13d1 Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Sat, 21 Feb 2026 00:15:46 +0100 Subject: [PATCH] nvim better repeat-goto-next --- CONFIG/nvim/init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CONFIG/nvim/init.lua b/CONFIG/nvim/init.lua index 9037596..23131de 100644 --- a/CONFIG/nvim/init.lua +++ b/CONFIG/nvim/init.lua @@ -213,7 +213,12 @@ map("n", "p", "tabprevious", { desc = "Previous Tab" }) -- other map("n", "cw", [[:cd %:p:h]], { desc = "Set Workspace To Buffer Path" }) map("n", "o", "m`o``", { desc = "Insert Newline" }) -map("n", "\\", "n.", { noremap = true, silent = true, desc = "Repeat And Goto Next" }) +map( + "n", + "\\", + function() vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("n.", true, true, true), "n", true) end, + { noremap = true, silent = true, desc = "Repeat And Goto Next" } +) map("n", "", "Lazy", { desc = "Lazy" }) map( "n",