summaryrefslogtreecommitdiff
path: root/lua/core/which-key.lua
diff options
context:
space:
mode:
authortuxflo <[email protected]>2021-08-11 04:56:25 +0200
committerGitHub <[email protected]>2021-08-10 22:56:25 -0400
commit2fcb64ac561b2860ccac2e28dcaed51d00337f85 (patch)
tree97ab855f6e2dbc2a94acf5789c3198183dbb5e97 /lua/core/which-key.lua
parentfc9090f64b73c2c2c5d9a6c3ec60ef4c2fe56cfe (diff)
change no highlight behavior (#1285)
with `<cmd>let @/=""<CR>` 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.
Diffstat (limited to 'lua/core/which-key.lua')
-rw-r--r--lua/core/which-key.lua2
1 files changed, 1 insertions, 1 deletions
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"] = { "<cmd>BufferClose!<CR>", "Close Buffer" },
["e"] = { "<cmd>lua require'core.nvimtree'.toggle_tree()<CR>", "Explorer" },
["f"] = { "<cmd>Telescope find_files<CR>", "Find File" },
- ["h"] = { '<cmd>let @/=""<CR>', "No Highlight" },
+ ["h"] = { '<cmd>nohlsearch', "No Highlight" },
b = {
name = "Buffers",
j = { "<cmd>BufferPick<cr>", "jump to buffer" },