nvim: dismiss search highlight with <leader>h instead of <cr>

This commit is contained in:
Fernando Schauenburg 2025-03-19 21:28:47 +01:00
parent 7915fc72ce
commit e673e66e1b

View file

@ -42,7 +42,7 @@ M.setup = function()
map("n", "<c-l>", "<c-w>l") map("n", "<c-l>", "<c-w>l")
-- disable highlight until next search -- disable highlight until next search
map("n", "<cr>", "<cmd>nohlsearch<cr>") map("n", "<leader>h", "<cmd>nohlsearch<cr>")
local window = require("fschauen.util.window") local window = require("fschauen.util.window")