summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
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", "<ESC>")
+vim.keymap.set("n", "<Leader>n", "*", { desc = "Search forward for the word nearest to the cursor." })
+
if vim.fn.has("termguicolors") then
vim.o.termguicolors = true
end