From ca89048a67147b04328ea10c6774e933f42168a9 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Tue, 23 Jul 2024 11:49:14 +0200 Subject: [PATCH] nvim: dismiss search highlight with instead of h --- config/nvim/lua/fschauen/keymap.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/nvim/lua/fschauen/keymap.lua b/config/nvim/lua/fschauen/keymap.lua index ce63660..942f58c 100644 --- a/config/nvim/lua/fschauen/keymap.lua +++ b/config/nvim/lua/fschauen/keymap.lua @@ -41,6 +41,9 @@ M.setup = function() map("n", "", "h") map("n", "", "l") + -- disable highlight until next search + map("n", "", "nohlsearch") + local window = require("fschauen.window") -- window resizing @@ -95,9 +98,6 @@ M.setup = function() map("n", "dh", diagnostic.hide, { desc = ui.Diagnostic.." [d]iagnostic [h]ide" }) map("n", "ds", diagnostic.select_virtual_text_severity, { desc = ui.Diagnostic.." [d]iagnostic [s]everity" }) - -- disable highlight until next search - map("n", "h", "nohlsearch") - -- navigate items in quickfix and location lists map("n", "j", "cnextzz") map("n", "k", "cpreviouszz")