From b86954ad293a7b8328ca0738955db10035acc05a Mon Sep 17 00:00:00 2001 From: Marcelo Date: Thu, 10 Apr 2025 17:24:50 -0300 Subject: Search forward a word with `n` because `*` is harder. --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index 5d073fc..e82deb9 100644 --- a/init.lua +++ b/init.lua @@ -61,6 +61,8 @@ end, { desc = "Save all changed buffers" }) -- When I forgot that vim is o insert mode. vim.keymap.set("i", "jj", "") +vim.keymap.set("n", "n", "*", { desc = "Search forward for the word nearest to the cursor." }) + if vim.fn.has("termguicolors") then vim.o.termguicolors = true end -- cgit v1.2.3