From 7e9255780ed086f0380d74b8d03601da2eaeb3f8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 18 Aug 2022 00:56:46 +0200 Subject: [PATCH] nvim: add keymap for nohlsearch --- .config/nvim/lua/my/keymaps.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/nvim/lua/my/keymaps.lua b/.config/nvim/lua/my/keymaps.lua index 45b1e32..ddb0cd4 100644 --- a/.config/nvim/lua/my/keymaps.lua +++ b/.config/nvim/lua/my/keymaps.lua @@ -83,3 +83,4 @@ end map('n', '', '') -- follow symbol map('n', '', '') -- go back to previous pos map('v', 'f', 'gq', 'Reformat text') +map('n', 'h', ':nohlsearch', 'Stop highlighting search')