From 42de7d9c83ce5564f98b1deee80ee00b3c51893e Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Wed, 17 Apr 2024 05:11:09 +0530 Subject: [PATCH] nvim: add keymap to clear highlighted search --- .config/nvim/lua/key-mappings.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/nvim/lua/key-mappings.lua b/.config/nvim/lua/key-mappings.lua index c38adfe..f5e5030 100644 --- a/.config/nvim/lua/key-mappings.lua +++ b/.config/nvim/lua/key-mappings.lua @@ -1,3 +1,6 @@ +-- clear the highlighted search on in normal mode +vim.keymap.set('n', '', 'nohlsearch') + -- jump to start and end of line using the home row keys vim.keymap.set('n', 'H', '^') vim.keymap.set('n', 'L', '$')