From 2fcb64ac561b2860ccac2e28dcaed51d00337f85 Mon Sep 17 00:00:00 2001 From: tuxflo Date: Wed, 11 Aug 2021 04:56:25 +0200 Subject: change no highlight behavior (#1285) with `let @/=""` its not possible to use `n`,`N` or stuff like `gcn` anymore because the last search is overwritten. With `:nohlsearch` this is not the case. --- lua/core/which-key.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/core/which-key.lua') diff --git a/lua/core/which-key.lua b/lua/core/which-key.lua index 90bf1ace..67a553ff 100644 --- a/lua/core/which-key.lua +++ b/lua/core/which-key.lua @@ -68,7 +68,7 @@ M.config = function() ["c"] = { "BufferClose!", "Close Buffer" }, ["e"] = { "lua require'core.nvimtree'.toggle_tree()", "Explorer" }, ["f"] = { "Telescope find_files", "Find File" }, - ["h"] = { 'let @/=""', "No Highlight" }, + ["h"] = { 'nohlsearch', "No Highlight" }, b = { name = "Buffers", j = { "BufferPick", "jump to buffer" }, -- cgit v1.2.3